Skip to main content

sessions_for_workers

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

Overview

Namesessions_for_workers
TypeResource
Idaws.deadline.sessions_for_workers

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
ended_atstring (date-time)The date and time the resource ended running.
job_idstringThe job ID for the job associated with the worker's session. (pattern: <code>job-[0-9a-f]{32}</code>)
lifecycle_statusstringThe life cycle status for the worker's session. (STARTED, UPDATE_IN_PROGRESS, UPDATE_SUCCEEDED, UPDATE_FAILED, ENDED)
queue_idstringThe queue ID for the queue associated to the worker. (pattern: <code>queue-[0-9a-f]{32}</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.
target_lifecycle_statusstringThe life cycle status (ENDED)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_sessions_for_workerselectfarm_id, fleet_id, worker_id, regionnextToken, maxResultsLists sessions for a worker.

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.
fleet_idstringThe fleet ID for the session.
regionstringAWS region (default: us-east-1)
worker_idstringThe worker 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.

SELECT examples

Lists sessions for a worker.

SELECT
ended_at,
job_id,
lifecycle_status,
queue_id,
session_id,
started_at,
target_lifecycle_status
FROM aws.deadline.sessions_for_workers
WHERE farm_id = '{{ farm_id }}' -- required
AND fleet_id = '{{ fleet_id }}' -- required
AND worker_id = '{{ worker_id }}' -- required
AND region = '{{ region }}' -- required
AND nextToken = '{{ nextToken }}'
AND maxResults = '{{ maxResults }}'
;