Skip to main content

session_actions

Creates, updates, deletes, gets or lists a session_actions resource.

Overview

Namesession_actions
TypeResource
Idaws.deadline.session_actions

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
acquired_limitsarrayThe limits and their amounts acquired during a session action. If no limits were acquired during the session, this field isn't returned.
definitionobjectThe session action definition.
ended_atstring (date-time)The date and time the resource ended running.
manifestsarrayThe list of manifest properties that describe file attachments for the task run.
process_exit_codeintegerThe process exit code. The default Deadline Cloud worker agent converts unsigned 32-bit exit codes to signed 32-bit exit codes.
progress_messagestringThe message that communicates the progress of the session action.
progress_percentnumber (float)The percentage completed for a session action.
session_action_idstringThe session action ID. (pattern: <code>sessionaction-[0-9a-f]{32}-(0|([1-9][0-9]{0,9}))</code>)
session_idstringThe session ID for the session action. (pattern: <code>session-[0-9a-f]{32}</code>)
started_atstring (date-time)The date and time the resource started running.
statusstringThe status of the session action. (ASSIGNED, RUNNING, CANCELING, SUCCEEDED, FAILED, INTERRUPTED, CANCELED, NEVER_ATTEMPTED, SCHEDULED, RECLAIMING, RECLAIMED)
worker_updated_atstring (date-time)The Linux timestamp of the date and time the session action was last updated.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_session_actionselectfarm_id, queue_id, job_id, session_action_id, regionGets a session action for the job.
list_session_actionsselectfarm_id, queue_id, job_id, regionnextToken, maxResults, sessionId, taskIdLists session actions.
batch_get_session_actionselectregionRetrieves multiple session actions in a single request. This is a batch version of the GetSessionAction API. The result of getting each session action is reported individually in the response. Because the batch request can result in a combination of successful and unsuccessful actions, you should check for batch errors even when the call returns an HTTP status code of 200.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
farm_idstringThe farm ID for the session actions list.
job_idstringThe job ID for the session actions list.
queue_idstringThe queue ID for the session actions list.
regionstringAWS region (default: us-east-1)
session_action_idstringThe session action ID for the session.
maxResultsintegerThe maximum number of results to return. Use this parameter with NextToken to get results as a set of sequential pages.
nextTokenstringThe token for the next set of results, or null to start from the beginning.
sessionIdstringThe session ID to include on the sessions action list.
taskIdstringThe task ID for the session actions list.

SELECT examples

Gets a session action for the job.

SELECT
acquired_limits,
definition,
ended_at,
manifests,
process_exit_code,
progress_message,
progress_percent,
session_action_id,
session_id,
started_at,
status,
worker_updated_at
FROM aws.deadline.session_actions
WHERE farm_id = '{{ farm_id }}' -- required
AND queue_id = '{{ queue_id }}' -- required
AND job_id = '{{ job_id }}' -- required
AND session_action_id = '{{ session_action_id }}' -- required
AND region = '{{ region }}' -- required
;