Skip to content

UpdateJob

Source: src/AWS/Deadline/UpdateJob.ts

Runtime binding for deadline:UpdateJob.

Mutates a job in the bound Queue — reprioritize, cap failures, or cancel/suspend/requeue it by setting targetTaskRunStatus. The queue’s farmId/queueId are injected from the binding. Provide the implementation with Effect.provide(AWS.Deadline.UpdateJobHttp).

// init — bind the operation to the queue
const updateJob = yield* AWS.Deadline.UpdateJob(queue);
// runtime
yield* updateJob({ jobId, targetTaskRunStatus: "CANCELED" });