DeadlineCloud / Client / update_worker_schedule
update_worker_schedule#
- DeadlineCloud.Client.update_worker_schedule(**kwargs)#
Updates the schedule for a worker.
See also: AWS API Documentation
Request Syntax
response = client.update_worker_schedule( farmId='string', fleetId='string', updatedSessionActions={ 'string': { 'completedStatus': 'SUCCEEDED'|'FAILED'|'INTERRUPTED'|'CANCELED'|'NEVER_ATTEMPTED', 'endedAt': datetime(2015, 1, 1), 'processExitCode': 123, 'progressMessage': 'string', 'progressPercent': ..., 'startedAt': datetime(2015, 1, 1), 'updatedAt': datetime(2015, 1, 1) } }, workerId='string' )
- Parameters:
farmId (string) –
[REQUIRED]
The farm ID to update.
fleetId (string) –
[REQUIRED]
The fleet ID to update.
updatedSessionActions (dict) –
The session actions associated with the worker schedule to update.
(string) –
(dict) –
The updated session action information as it relates to completion and progress of the session.
completedStatus (string) –
The status of the session upon completion.
endedAt (datetime) –
The date and time the resource ended running.
processExitCode (integer) –
The process exit code.
progressMessage (string) –
A message to indicate the progress of the updated session action.
progressPercent (float) –
The percentage completed.
startedAt (datetime) –
The date and time the resource started running.
updatedAt (datetime) –
The updated time.
workerId (string) –
[REQUIRED]
The worker ID to update.
- Return type:
dict
- Returns:
Response Syntax
{ 'assignedSessions': { 'string': { 'jobId': 'string', 'logConfiguration': { 'error': 'string', 'logDriver': 'string', 'options': { 'string': 'string' }, 'parameters': { 'string': 'string' } }, 'queueId': 'string', 'sessionActions': [ { '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' } }, 'sessionActionId': 'string' }, ] } }, 'cancelSessionActions': { 'string': [ 'string', ] }, 'desiredWorkerStatus': 'STOPPED', 'updateIntervalSeconds': 123 }
Response Structure
(dict) –
assignedSessions (dict) –
The assigned sessions to update.
(string) –
(dict) –
The assigned session for the worker.
jobId (string) –
The job ID for the assigned session.
logConfiguration (dict) –
The log configuration for the worker’s assigned session.
error (string) –
The log configuration error details.
logDriver (string) –
The log drivers for worker related logs.
options (dict) –
The options for a log driver.
(string) –
(string) –
parameters (dict) –
The parameters for the log configuration.
(string) –
(string) –
queueId (string) –
The queue ID of the assigned session.
sessionActions (list) –
The session actions to apply to the assigned session.
(dict) –
The action for a session defined by the session action ID.
definition (dict) –
The definition of the assigned session action.
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 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'}
envEnter (dict) –
The environment a session starts on.
environmentId (string) –
The environment ID of the assigned environment at the start of a session.
envExit (dict) –
The environment a session exits from.
environmentId (string) –
The environment ID of the assigned environment when exiting a session.
syncInputJobAttachments (dict) –
The job attachment to sync with an assigned session action.
stepId (string) –
The step ID.
taskRun (dict) –
The task run.
parameters (dict) –
The parameters to include.
(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 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.
stepId (string) –
The step ID.
taskId (string) –
The task ID.
sessionActionId (string) –
The session action ID for the assigned session.
cancelSessionActions (dict) –
The session actions associated with the worker schedule to cancel.
(string) –
(list) –
(string) –
desiredWorkerStatus (string) –
The status to update the worker to.
updateIntervalSeconds (integer) –
Updates the time interval (in seconds) for the schedule.
Exceptions
DeadlineCloud.Client.exceptions.AccessDeniedException
DeadlineCloud.Client.exceptions.InternalServerErrorException
DeadlineCloud.Client.exceptions.ResourceNotFoundException
DeadlineCloud.Client.exceptions.ThrottlingException
DeadlineCloud.Client.exceptions.ConflictException
DeadlineCloud.Client.exceptions.ValidationException