DeadlineCloud / Client / list_steps

list_steps#

DeadlineCloud.Client.list_steps(**kwargs)#

Lists steps for a job.

See also: AWS API Documentation

Request Syntax

response = client.list_steps(
    farmId='string',
    jobId='string',
    maxResults=123,
    nextToken='string',
    queueId='string'
)
Parameters:
  • farmId (string) –

    [REQUIRED]

    The farm ID to include on the list of steps.

  • jobId (string) –

    [REQUIRED]

    The job ID to include on the list of steps.

  • maxResults (integer) – The maximum number of results to return. Use this parameter with NextToken to get results as a set of sequential pages.

  • nextToken (string) – The token for the next set of results, or null to start from the beginning.

  • queueId (string) –

    [REQUIRED]

    The queue ID to include on the list of steps.

Return type:

dict

Returns:

Response Syntax

{
    'nextToken': 'string',
    'steps': [
        {
            'createdAt': datetime(2015, 1, 1),
            'createdBy': 'string',
            'dependencyCounts': {
                'consumersResolved': 123,
                'consumersUnresolved': 123,
                'dependenciesResolved': 123,
                'dependenciesUnresolved': 123
            },
            'endedAt': datetime(2015, 1, 1),
            'lifecycleStatus': 'CREATE_COMPLETE'|'UPDATE_IN_PROGRESS'|'UPDATE_FAILED'|'UPDATE_SUCCEEDED',
            'lifecycleStatusMessage': 'string',
            'name': 'string',
            'startedAt': datetime(2015, 1, 1),
            'stepId': 'string',
            'targetTaskRunStatus': 'READY'|'FAILED'|'SUCCEEDED'|'CANCELED'|'SUSPENDED'|'PENDING',
            'taskRunStatus': 'PENDING'|'READY'|'ASSIGNED'|'STARTING'|'SCHEDULED'|'INTERRUPTING'|'RUNNING'|'SUSPENDED'|'CANCELED'|'FAILED'|'SUCCEEDED'|'NOT_COMPATIBLE',
            'taskRunStatusCounts': {
                'string': 123
            },
            'updatedAt': datetime(2015, 1, 1),
            'updatedBy': 'string'
        },
    ]
}

Response Structure

  • (dict) –

    • nextToken (string) –

      If Deadline Cloud returns nextToken, then there are more results available. The value of nextToken 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, then nextToken is set to null. Each pagination token expires after 24 hours. If you provide a token that isn’t valid, then you receive an HTTP 400 ValidationException error.

    • steps (list) –

      The steps on the list.

      • (dict) –

        The details for a step.

        • createdAt (datetime) –

          The date and time the resource was created.

        • createdBy (string) –

          The user or system that created this resource.

        • dependencyCounts (dict) –

          The number of dependencies for the step.

          • consumersResolved (integer) –

            The number of consumers resolved.

          • consumersUnresolved (integer) –

            The number of unresolved consumers.

          • dependenciesResolved (integer) –

            The number of resolved dependencies.

          • dependenciesUnresolved (integer) –

            The number of unresolved dependencies.

        • endedAt (datetime) –

          The date and time the resource ended running.

        • lifecycleStatus (string) –

          The life cycle status.

        • lifecycleStatusMessage (string) –

          A message that describes the lifecycle of the step.

        • name (string) –

          The name of the step.

        • startedAt (datetime) –

          The date and time the resource started running.

        • stepId (string) –

          The step ID.

        • targetTaskRunStatus (string) –

          The task status to start with on the job.

        • taskRunStatus (string) –

          The task run status for the job.

          • PENDING–pending and waiting for resources.

          • READY–ready to process.

          • ASSIGNED–assigned and will run next on a worker.

          • SCHEDULED–scheduled to run on a worker.

          • INTERRUPTING–being interrupted.

          • RUNNING–running on a worker.

          • SUSPENDED–the task is suspended.

          • CANCELED–the task has been canceled.

          • FAILED–the task has failed.

          • SUCCEEDED–the task has succeeded.

        • taskRunStatusCounts (dict) –

          The number of tasks running on the job.

          • (string) –

            • (integer) –

        • updatedAt (datetime) –

          The date and time the resource was updated.

        • updatedBy (string) –

          The user or system that updated this resource.

Exceptions