CancelJob
Source:
src/AWS/Batch/CancelJob.ts
Cancel a queued AWS Batch job from runtime code. Jobs in SUBMITTED,
PENDING, or RUNNABLE state are cancelled; jobs that already progressed
to STARTING/RUNNING are NOT cancelled (use TerminateJob for those) —
the request still succeeds.
Cancelling Jobs
Section titled “Cancelling Jobs”const cancelJob = yield* Batch.CancelJob(queue);yield* cancelJob({ jobId, reason: "superseded" });