Skip to content

GetJob

Source: src/AWS/Deadline/GetJob.ts

Runtime binding for deadline:GetJob.

Reads a job’s detail in the bound Queue — lifecycle status, task run status counts, priority, timing. The queue’s farmId/queueId are injected from the binding. Provide the implementation with Effect.provide(AWS.Deadline.GetJobHttp).

// init — bind the operation to the queue
const getJob = yield* AWS.Deadline.GetJob(queue);
// runtime
const job = yield* getJob({ jobId });
if (job.taskRunStatus === "FAILED") {
yield* Effect.logError(job.lifecycleStatusMessage);
}