# Class MigrationSubtask (0.15.0)

0.15.0 (latest) 0.14.0 0.13.0 0.12.0 0.11.15 0.10.0 0.9.1 0.8.0 0.7.2 0.6.0 0.5.0 0.4.3 0.3.1 0.2.1 0.1.0

    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 ||
|---|---|
| **Name** | **Description** |
| `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` | `https://docs.cloud.google.com/python/docs/reference/bigquerymigration/latest/google.cloud.bigquery_migration_v2alpha.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[https://docs.cloud.google.com/python/docs/reference/bigquerymigration/latest/google.cloud.bigquery_migration_v2alpha.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[https://docs.cloud.google.com/python/docs/reference/bigquerymigration/latest/google.cloud.bigquery_migration_v2alpha.types.TimeSeries]` The metrics for the subtask. |

## Classes

### State

    State(value)

Possible states of a migration subtask.