Skip to content

UpdateTask

Source: src/AWS/Deadline/UpdateTask.ts

Runtime binding for deadline:UpdateTask.

Retargets a single task of a job in the bound Queue — requeue (READY), cancel (CANCELED), suspend (SUSPENDED), or force-fail/ succeed it. The queue’s farmId/queueId are injected from the binding. Provide the implementation with Effect.provide(AWS.Deadline.UpdateTaskHttp).

// init — bind the operation to the queue
const updateTask = yield* AWS.Deadline.UpdateTask(queue);
// runtime
yield* updateTask({ jobId, stepId, taskId, targetRunStatus: "CANCELED" });