AWS Batch now supports bulk job cancellation and termination

AWS Batch Bulk Job Cancellation and Termination
AWS Batch now supports bulk job cancellation and termination, enabling you to cancel or terminate up to 50 jobs with a single API call. The new CancelJobs, TerminateJobs, and TerminateServiceJobs APIs reduce the operational complexity of managing large-scale batch workloads, letting you act on groups of jobs at once and receive per-job results in a single response. Additionally, ListJobs now returns isCancelled and isTerminated fields, and ListServiceJobs returns isTerminated, making it easier to track the lifecycle state of your jobs.
What to do
- Call CancelJobs for jobs in SUBMITTED, PENDING, or RUNNABLE states.
- Call TerminateJobs and TerminateServiceJobs for jobs in any state, including STARTING and RUNNING.
- Use the AWS CLI or AWS SDKs to access these APIs.
Bulk job cancellation and termination is available in all AWS Regions where AWS Batch is available. For more information, see the CancelJobs, TerminateJobs, and TerminateServiceJobs pages in the AWS Batch API Reference Guide.
Source: AWS release notes
If you need further guidance on AWS, our experts are available at AWS@westloop.io. You may also reach us by submitting the Contact Us form.



