cancel_job_run
Stop EMR Serverless job runs that are stuck, running too long, or started with incorrect parameters. This tool sends an asynchronous cancellation request to transition jobs to CANCELLED state.
Instructions
Cancel a running or pending EMR Serverless job run.
Use this when a Spark job is stuck, taking too long, or was started with incorrect parameters. The cancellation is asynchronous — the job will transition to CANCELLING and then CANCELLED state.
Args: application_id: The EMR Serverless application ID. job_run_id: The job run ID to cancel. env: Target environment — 'dev', 'uat', 'test', or 'prod'. IMPORTANT: Do NOT guess or default. Ask the user which environment if not specified.
Returns confirmation of the cancellation request.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| application_id | Yes | ||
| job_run_id | Yes | ||
| env | No |