Skip to content

GetSessionAction

Source: src/AWS/Deadline/GetSessionAction.ts

Runtime binding for deadline:GetSessionAction.

Reads one session action’s detail (status, timing, exit code, progress, definition) for a job in the bound Queue. The queue’s farmId/queueId are injected from the binding. Provide the implementation with Effect.provide(AWS.Deadline.GetSessionActionHttp).

// init — bind the operation to the queue
const getSessionAction = yield* AWS.Deadline.GetSessionAction(queue);
// runtime
const action = yield* getSessionAction({ jobId, sessionActionId });
if (action.processExitCode !== undefined && action.processExitCode !== 0) {
yield* Effect.logError(`action failed: ${action.processExitCode}`);
}