DeadlineCloud / Client / get_session_action

get_session_action#

DeadlineCloud.Client.get_session_action(**kwargs)#

Gets a session action for the job.

See also: AWS API Documentation

Request Syntax

response = client.get_session_action(
    farmId='string',
    jobId='string',
    queueId='string',
    sessionActionId='string'
)
Parameters:
  • farmId (string) –

    [REQUIRED]

    The farm ID for the session action.

  • jobId (string) –

    [REQUIRED]

    The job ID for the session.

  • queueId (string) –

    [REQUIRED]

    The queue ID for the session action.

  • sessionActionId (string) –

    [REQUIRED]

    The session action ID for the session.

Return type:

dict

Returns:

Response Syntax

{
    'definition': {
        'envEnter': {
            'environmentId': 'string'
        },
        'envExit': {
            'environmentId': 'string'
        },
        'syncInputJobAttachments': {
            'stepId': 'string'
        },
        'taskRun': {
            'parameters': {
                'string': {
                    'float': 'string',
                    'int': 'string',
                    'path': 'string',
                    'string': 'string'
                }
            },
            'stepId': 'string',
            'taskId': 'string'
        }
    },
    'endedAt': datetime(2015, 1, 1),
    'processExitCode': 123,
    'progressMessage': 'string',
    'progressPercent': ...,
    'sessionActionId': 'string',
    'sessionId': 'string',
    'startedAt': datetime(2015, 1, 1),
    'status': 'ASSIGNED'|'RUNNING'|'CANCELING'|'SUCCEEDED'|'FAILED'|'INTERRUPTED'|'CANCELED'|'NEVER_ATTEMPTED'|'SCHEDULED'|'RECLAIMING'|'RECLAIMED',
    'workerUpdatedAt': datetime(2015, 1, 1)
}

Response Structure

  • (dict) –

    • definition (dict) –

      The session action definition.

      Note

      This is a Tagged Union structure. Only one of the following top level keys will be set: envEnter, envExit, syncInputJobAttachments, taskRun. 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'}
      
      • envEnter (dict) –

        The environment to enter into.

        • environmentId (string) –

          The environment ID.

      • envExit (dict) –

        The environment to exit from.

        • environmentId (string) –

          The environment ID.

      • syncInputJobAttachments (dict) –

        The job attachments to sync with a session action.

        • stepId (string) –

          The step ID for the step in the job attachment.

      • taskRun (dict) –

        The task run in the session.

        • 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: 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.

        • stepId (string) –

          The step ID.

        • taskId (string) –

          The task ID.

    • endedAt (datetime) –

      The date and time the resource ended running.

    • processExitCode (integer) –

      The exit code to exit the session.

    • progressMessage (string) –

      The message that communicates the progress of the session action.

    • progressPercent (float) –

      The percentage completed for a session action.

    • sessionActionId (string) –

      The session action ID.

    • sessionId (string) –

      The session ID for the session action.

    • startedAt (datetime) –

      The date and time the resource started running.

    • status (string) –

      The status of the session action.

    • workerUpdatedAt (datetime) –

      The Linux timestamp of the date and time the session action was last updated.

Exceptions

  • DeadlineCloud.Client.exceptions.AccessDeniedException

  • DeadlineCloud.Client.exceptions.InternalServerErrorException

  • DeadlineCloud.Client.exceptions.ResourceNotFoundException

  • DeadlineCloud.Client.exceptions.ThrottlingException

  • DeadlineCloud.Client.exceptions.ValidationException