aws-batch Verified for current stable LTS

Aws Batch Command: Cancel Job

An engineer would use the 'aws batch cancel-job' command when they need to terminate a queued or running job in an AWS Batch environment, typically due to a change in project requirements or to address an error. Exact CLI syntax to cancel job using Aws Batch.

When to use this: An engineer would use the 'aws batch cancel-job' command when they need to terminate a queued or running job in an AWS Batch environment, typically due to a change in project requirements or to address an error.

Command Syntax

aws batch cancel-job --job-id <job_id> --reason <reason>

Command Breakdown

--job-id
Command Option
Tool-specific option used by this command invocation.
--reason
Command Option
Tool-specific option used by this command invocation.

FAQ

Purpose: Exact syntax to cancel job using Aws Batch.

Test path: Replace placeholders and run destructive commands in a disposable workspace first.

Flag behavior: Tool version, platform, and shell can change behavior.

Improve This Command

Suggest a correction, safer default, or version-specific note for this entry.

Related Operations

Back to Aws Batch directory