GlueClient.cancel_ml_task_run
rboto-glue==0.4.0 · Service index · Types
Model summary (excerpt): Cancels (stops) a task run. Machine learning task runs are asynchronous tasks that Glue runs on your behalf as part of various machine learning workflows. You can cancel a machine learning task run at any time by calling CancelMLTaskRun with a task run's parent transform's TransformID and the task run's TaskRunId .
Install and imports
Signature
async def cancel_ml_task_run(
*,
transform_id: str,
task_run_id: str,
) -> CancelMLTaskRunOutput: ...
Arguments without defaults are required. None omits an optional request argument. Static types do not validate resource existence, permissions, lengths, ranges, or conditional service requirements.
Arguments
| Argument | Required | Model notes (excerpt) |
|---|---|---|
transform_id |
Yes | The unique identifier of the machine learning transform. |
task_run_id |
Yes | A unique identifier for the task run. |
Output
CancelMLTaskRunOutput.
Read-only native attributes, accessed as response.field. Collection getters materialize Python values; to_dict() recursively materializes a mapping. Streams are consumed once.
| Field | Type | Presence | References |
|---|---|---|---|
transform_id |
str | None |
Always present | — |
task_run_id |
str | None |
Always present | — |
status |
TaskStatusTypeOutput | None |
Always present | TaskStatusTypeOutput |
| None means a value can be absent. Output mappings include every declared key; optional input keys may be omitted. Unknown output enum/union variants are not automatically valid inputs.
Related types
Follow these links for nested inputs and outputs; recursive types link back to the same type page.
Pagination and streaming
No generated paginator for this operation.
No output stream.
Errors
Import from rboto_glue.exceptions:
EntityNotFoundError, InternalServiceError, InvalidInputError, OperationTimeoutError.
Other service failures use the service base error; credential, transport and timeout failures use shared errors.