DeadlineCloud / Client / list_tasks
list_tasks#
- DeadlineCloud.Client.list_tasks(**kwargs)#
Lists tasks for a job.
See also: AWS API Documentation
Request Syntax
response = client.list_tasks( farmId='string', queueId='string', jobId='string', stepId='string', nextToken='string', maxResults=123 )
- Parameters:
farmId (string) –
[REQUIRED]
The farm ID connected to the tasks.
queueId (string) –
[REQUIRED]
The queue ID connected to the tasks.
jobId (string) –
[REQUIRED]
The job ID for the tasks.
stepId (string) –
[REQUIRED]
The step ID for the tasks.
nextToken (string) – The token for the next set of results, or
null
to start from the beginning.maxResults (integer) – The maximum number of results to return. Use this parameter with
NextToken
to get results as a set of sequential pages.
- Return type:
dict
- Returns:
Response Syntax
{ 'tasks': [ { 'taskId': 'string', 'createdAt': datetime(2015, 1, 1), 'createdBy': 'string', 'runStatus': 'PENDING'|'READY'|'ASSIGNED'|'STARTING'|'SCHEDULED'|'INTERRUPTING'|'RUNNING'|'SUSPENDED'|'CANCELED'|'FAILED'|'SUCCEEDED'|'NOT_COMPATIBLE', 'targetRunStatus': 'READY'|'FAILED'|'SUCCEEDED'|'CANCELED'|'SUSPENDED'|'PENDING', 'failureRetryCount': 123, 'parameters': { 'string': { 'int': 'string', 'float': 'string', 'string': 'string', 'path': 'string' } }, 'startedAt': datetime(2015, 1, 1), 'endedAt': datetime(2015, 1, 1), 'updatedAt': datetime(2015, 1, 1), 'updatedBy': 'string', 'latestSessionActionId': 'string' }, ], 'nextToken': 'string' }
Response Structure
(dict) –
tasks (list) –
Tasks for the job.
(dict) –
The details of a task.
taskId (string) –
The task ID.
createdAt (datetime) –
The date and time the resource was created.
createdBy (string) –
The user or system that created this resource.
runStatus (string) –
The run status of the task.
targetRunStatus (string) –
The run status on which the started.
failureRetryCount (integer) –
The number of times that the task failed and was retried.
parameters (dict) –
The task parameters.
(string) –
(dict) –
The data types for the task parameters.
Note
This is a Tagged Union structure. Only one of the following top level keys will be set:
int
,float
,string
,path
. If a client receives an unknown member it will setSDK_UNKNOWN_MEMBER
as the top level key, which maps to the name or tag of the unknown member. The structure ofSDK_UNKNOWN_MEMBER
is as follows:'SDK_UNKNOWN_MEMBER': {'name': 'UnknownMemberName'}
int (string) –
A signed integer represented as a string.
float (string) –
A double precision IEEE-754 floating point number represented as a string.
string (string) –
A UTF-8 string.
path (string) –
A file system path represented as a string.
startedAt (datetime) –
The date and time the resource started running.
endedAt (datetime) –
The date and time the resource ended running.
updatedAt (datetime) –
The date and time the resource was updated.
updatedBy (string) –
The user or system that updated this resource.
latestSessionActionId (string) –
The latest session action for the task.
nextToken (string) –
If Deadline Cloud returns
nextToken
, then there are more results available. The value ofnextToken
is a unique pagination token for each page. To retrieve the next page, call the operation again using the returned token. Keep all other arguments unchanged. If no results remain, thennextToken
is set tonull
. Each pagination token expires after 24 hours. If you provide a token that isn’t valid, then you receive an HTTP 400ValidationException
error.
Exceptions