GlueClient.get_ml_task_runs
rboto-glue==0.4.0 · Service index · Types
Model summary (excerpt): Gets a list of runs for a machine learning transform. Machine learning task runs are asynchronous tasks that Glue runs on your behalf as part of various machine learning workflows. You can get a sortable, filterable list of machine learning task runs by calling GetMLTaskRuns with their parent transform's TransformID and other optional parameters as documented in this section. This operation...
Install and imports
from rboto import GlueClient
from rboto_glue.types import (
GetMLTaskRunsOutput,
TaskRunFilterCriteria,
TaskRunSortCriteria,
)
Signature
async def get_ml_task_runs(
*,
transform_id: str,
next_token: str | None = None,
max_results: int | None = None,
filter: TaskRunFilterCriteria | None = None,
sort: TaskRunSortCriteria | None = None,
) -> GetMLTaskRunsOutput: ...
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. |
next_token |
No | A token for pagination of the results. The default is empty. |
max_results |
No | The maximum number of results to return. |
filter |
No | The filter criteria, in the TaskRunFilterCriteria structure, for the task run. |
sort |
No | The sorting criteria, in the TaskRunSortCriteria structure, for the task run. |
Output
GetMLTaskRunsOutput.
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 |
|---|---|---|---|
task_runs |
list[TaskRunOutput] | None |
Always present | TaskRunOutput |
next_token |
str | None |
Always present | — |
| 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
GetMLTaskRunsOutput, TaskRunFilterCriteria, TaskRunSortCriteria
Follow these links for nested inputs and outputs; recursive types link back to the same type page.
Pagination and streaming
client.paginators.get_ml_task_runs(...) accepts the same arguments and returns AsyncIterator[GetMLTaskRunsOutput]. Direct calls return one page. Pages preserve the Output representation above.
Input cursors: next_token. Page-size argument: max_results.
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.