DeadlineCloud / Client / get_task



Gets a task.

See also: AWS API Documentation

Request Syntax

response = client.get_task(
  • farmId (string) –


    The farm ID of the farm connected to the task.

  • jobId (string) –


    The job ID of the job connected to the task.

  • queueId (string) –


    The queue ID for the queue connected to the task.

  • stepId (string) –


    The step ID for the step connected to the task.

  • taskId (string) –


    The task ID.

Return type:



Response Syntax

    'createdAt': datetime(2015, 1, 1),
    'createdBy': 'string',
    'endedAt': datetime(2015, 1, 1),
    'failureRetryCount': 123,
    'latestSessionActionId': 'string',
    'parameters': {
        'string': {
            'float': 'string',
            'int': 'string',
            'path': 'string',
            'string': 'string'
    'startedAt': datetime(2015, 1, 1),
    'taskId': 'string',
    'updatedAt': datetime(2015, 1, 1),
    'updatedBy': 'string'

Response Structure

  • (dict) –

    • createdAt (datetime) –

      The date and time the resource was created.

    • createdBy (string) –

      The user or system that created this resource.

    • endedAt (datetime) –

      The date and time the resource ended running.

    • failureRetryCount (integer) –

      The number of times that the task failed and was retried.

    • latestSessionActionId (string) –

      The latest session ID for the task.

    • parameters (dict) –

      The parameters for the task.

      • (string) –

        • (dict) –

          The data types for the task parameters.


          This is a Tagged Union structure. Only one of the following top level keys will be set: float, int, path, string. If a client receives an unknown member it will set SDK_UNKNOWN_MEMBER as the top level key, which maps to the name or tag of the unknown member. The structure of SDK_UNKNOWN_MEMBER is as follows:

          'SDK_UNKNOWN_MEMBER': {'name': 'UnknownMemberName'}
          • float (string) –

            A double precision IEEE-754 floating point number represented as a string.

          • int (string) –

            A signed integer represented as a string.

          • path (string) –

            A file system path represented as a string.

          • string (string) –

            A UTF-8 string.

    • runStatus (string) –

      The run status for the task.

    • startedAt (datetime) –

      The date and time the resource started running.

    • targetRunStatus (string) –

      The run status with which to start the task.

    • taskId (string) –

      The task ID.

    • updatedAt (datetime) –

      The date and time the resource was updated.

    • updatedBy (string) –

      The user or system that updated this resource.


  • DeadlineCloud.Client.exceptions.AccessDeniedException

  • DeadlineCloud.Client.exceptions.InternalServerErrorException

  • DeadlineCloud.Client.exceptions.ResourceNotFoundException

  • DeadlineCloud.Client.exceptions.ThrottlingException

  • DeadlineCloud.Client.exceptions.ValidationException