MWAAServerless / Client / list_task_instances
list_task_instances¶
- MWAAServerless.Client.list_task_instances(**kwargs)¶
Lists all task instances for a specific workflow run, with optional pagination support.
See also: AWS API Documentation
Request Syntax
response = client.list_task_instances( WorkflowArn='string', RunId='string', MaxResults=123, NextToken='string' )
- Parameters:
WorkflowArn (string) –
[REQUIRED]
The Amazon Resource Name (ARN) of the workflow that contains the run.
RunId (string) –
[REQUIRED]
The unique identifier of the workflow run for which you want a list of task instances.
MaxResults (integer) – The maximum number of task instances to return in a single response.
NextToken (string) – The pagination token you need to use to retrieve the next set of results. This value is returned from a previous call to
ListTaskInstances.
- Return type:
dict
- Returns:
Response Syntax
{ 'TaskInstances': [ { 'WorkflowArn': 'string', 'WorkflowVersion': 'string', 'RunId': 'string', 'TaskInstanceId': 'string', 'Status': 'QUEUED'|'FAILED'|'SCHEDULED'|'RUNNING'|'SUCCESS'|'UP_FOR_RESCHEDULE'|'UP_FOR_RETRY'|'UPSTREAM_FAILED'|'REMOVED'|'RESTARTING'|'DEFERRED'|'NONE'|'CANCELLED'|'TIMEOUT', 'DurationInSeconds': 123, 'OperatorName': 'string' }, ], 'NextToken': 'string' }
Response Structure
(dict) –
TaskInstances (list) –
A list of task instance summaries for the specified workflow run.
(dict) –
Summary information about a task instance within a workflow run, including its status and execution details.
WorkflowArn (string) –
The Amazon Resource Name (ARN) of the workflow that contains this task instance.
WorkflowVersion (string) –
The version of the workflow that contains this task instance.
RunId (string) –
The unique identifier of the workflow run that contains this task instance.
TaskInstanceId (string) –
The unique identifier of this task instance.
Status (string) –
The current status of the task instance.
DurationInSeconds (integer) –
The duration of the task instance execution in seconds. This value is null if the task is not complete.
OperatorName (string) –
The name of the Apache Airflow operator used for this task instance.
NextToken (string) –
The pagination token you need to use to retrieve the next set of results. This value is null if there are no more results.
Exceptions
MWAAServerless.Client.exceptions.ThrottlingExceptionMWAAServerless.Client.exceptions.ValidationExceptionMWAAServerless.Client.exceptions.AccessDeniedExceptionMWAAServerless.Client.exceptions.InternalServerExceptionMWAAServerless.Client.exceptions.OperationTimeoutException