DeadlineCloud / Client / get_job
get_job#
- DeadlineCloud.Client.get_job(**kwargs)#
Gets a Deadline Cloud job.
See also: AWS API Documentation
Request Syntax
response = client.get_job( farmId='string', jobId='string', queueId='string' )
- Parameters:
farmId (string) –
[REQUIRED]
The farm ID of the farm in the job.
jobId (string) –
[REQUIRED]
The job ID.
queueId (string) –
[REQUIRED]
The queue ID associated with the job.
- Return type:
dict
- Returns:
Response Syntax
{ 'attachments': { 'fileSystem': 'COPIED'|'VIRTUAL', 'manifests': [ { 'fileSystemLocationName': 'string', 'inputManifestHash': 'string', 'inputManifestPath': 'string', 'outputRelativeDirectories': [ 'string', ], 'rootPath': 'string', 'rootPathFormat': 'windows'|'posix' }, ] }, 'createdAt': datetime(2015, 1, 1), 'createdBy': 'string', 'description': 'string', 'endedAt': datetime(2015, 1, 1), 'jobId': 'string', 'lifecycleStatus': 'CREATE_IN_PROGRESS'|'CREATE_FAILED'|'CREATE_COMPLETE'|'UPLOAD_IN_PROGRESS'|'UPLOAD_FAILED'|'UPDATE_IN_PROGRESS'|'UPDATE_FAILED'|'UPDATE_SUCCEEDED'|'ARCHIVED', 'lifecycleStatusMessage': 'string', 'maxFailedTasksCount': 123, 'maxRetriesPerTask': 123, 'name': 'string', 'parameters': { 'string': { 'float': 'string', 'int': 'string', 'path': 'string', 'string': 'string' } }, 'priority': 123, 'startedAt': datetime(2015, 1, 1), 'storageProfileId': '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) –
attachments (dict) –
The attachments for the job.
fileSystem (string) –
The file system.
manifests (list) –
A list of manifests which describe job attachment configurations.
(dict) –
The details of the manifest that links a job’s source information.
fileSystemLocationName (string) –
The file system location name.
inputManifestHash (string) –
The has value of the file.
inputManifestPath (string) –
The file path.
outputRelativeDirectories (list) –
The file path relative to the directory.
(string) –
rootPath (string) –
The file’s root path.
rootPathFormat (string) –
The format of the root path.
createdAt (datetime) –
The date and time the resource was created.
createdBy (string) –
The user or system that created this resource.
description (string) –
The description of the job.
endedAt (datetime) –
The date and time the resource ended running.
jobId (string) –
The job ID.
lifecycleStatus (string) –
The life cycle status for the job.
lifecycleStatusMessage (string) –
A message that communicates the status of the life cycle for the job.
maxFailedTasksCount (integer) –
The number of task failures before the job stops running and is marked as
FAILED
.maxRetriesPerTask (integer) –
The maximum number of retries per failed tasks.
name (string) –
The name of the job.
parameters (dict) –
The parameters for the job.
(string) –
(dict) –
The details of job 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 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'}
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.
priority (integer) –
The job priority.
startedAt (datetime) –
The date and time the resource started running.
storageProfileId (string) –
The storage profile ID associated with the job.
targetTaskRunStatus (string) –
The task status with which the job started.
taskRunStatus (string) –
The task run status for the job.
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
DeadlineCloud.Client.exceptions.AccessDeniedException
DeadlineCloud.Client.exceptions.InternalServerErrorException
DeadlineCloud.Client.exceptions.ResourceNotFoundException
DeadlineCloud.Client.exceptions.ThrottlingException
DeadlineCloud.Client.exceptions.ValidationException