Class MigrationSubtask (0.11.6)

MigrationSubtask(mapping=None, *, ignore_unknown_fields=False, **kwargs)

A subtask for a migration which carries details about the configuration of the subtask. The content of the details should not matter to the end user, but is a contract between the subtask creator and subtask worker.

Attributes

NameDescription
name str
Output only. Immutable. The resource name for the migration subtask. The ID is server-generated. Example: projects/123/locations/us/workflows/345/subtasks/678
task_id str
The unique ID of the task to which this subtask belongs.
type_ str
The type of the Subtask. The migration service does not check whether this is a known type. It is up to the task creator (i.e. orchestrator or worker) to ensure it only creates subtasks for which there are compatible workers polling for Subtasks.
state google.cloud.bigquery_migration_v2.types.MigrationSubtask.State
Output only. The current state of the subtask.
processing_error google.rpc.error_details_pb2.ErrorInfo
Output only. An explanation that may be populated when the task is in FAILED state.
resource_error_details MutableSequence[google.cloud.bigquery_migration_v2.types.ResourceErrorDetail]
Output only. Provides details to errors and issues encountered while processing the subtask. Presence of error details does not mean that the subtask failed.
resource_error_count int
The number or resources with errors. Note: This is not the total number of errors as each resource can have more than one error. This is used to indicate truncation by having a resource_error_count that is higher than the size of resource_error_details.
create_time google.protobuf.timestamp_pb2.Timestamp
Time when the subtask was created.
last_update_time google.protobuf.timestamp_pb2.Timestamp
Time when the subtask was last updated.
metrics MutableSequence[google.cloud.bigquery_migration_v2.types.TimeSeries]
The metrics for the subtask.

Classes

State

State(value)

Possible states of a migration subtask.

Values: STATE_UNSPECIFIED (0): The state is unspecified. ACTIVE (1): The subtask is ready, i.e. it is ready for execution. RUNNING (2): The subtask is running, i.e. it is assigned to a worker for execution. SUCCEEDED (3): The subtask finished successfully. FAILED (4): The subtask finished unsuccessfully. PAUSED (5): The subtask is paused, i.e., it will not be scheduled. If it was already assigned,it might still finish but no new lease renewals will be granted. PENDING_DEPENDENCY (6): The subtask is pending a dependency. It will be scheduled once its dependencies are done.