EMR Serverless

2025/06/03 - EMR Serverless - 1 updated api methods

Changes  AWS EMR Serverless: Adds a new option in the CancelJobRun API in EMR 7.9.0+, to cancel a job with grace period. This feature is enabled by default with a 120-second grace period for streaming jobs and is not enabled by default for batch jobs.

CancelJobRun (updated) Link ΒΆ
Changes (request)
{'shutdownGracePeriodInSeconds': 'integer'}

Cancels a job run.

See also: AWS API Documentation

Request Syntax

client.cancel_job_run(
    applicationId='string',
    jobRunId='string',
    shutdownGracePeriodInSeconds=123
)
type applicationId:

string

param applicationId:

[REQUIRED]

The ID of the application on which the job run will be canceled.

type jobRunId:

string

param jobRunId:

[REQUIRED]

The ID of the job run to cancel.

type shutdownGracePeriodInSeconds:

integer

param shutdownGracePeriodInSeconds:

The duration (in seconds) to wait before forcefully terminating the job after cancellation is requested.

rtype:

dict

returns:

Response Syntax

{
    'applicationId': 'string',
    'jobRunId': 'string'
}

Response Structure

  • (dict) --

    • applicationId (string) --

      The output contains the application ID on which the job run is cancelled.

    • jobRunId (string) --

      The output contains the ID of the cancelled job run.