Select your cookie preferences

We use cookies and similar tools to enhance your experience, provide our services, deliver relevant advertising, and make improvements. Approved third parties also use these tools to help us deliver advertising and provide certain site features.

cancel_job_run

cancel_job_run(**kwargs)

Cancels a job run. A job run is a unit of work, such as a Spark jar, PySpark script, or SparkSQL query, that you submit to Amazon EMR on EKS.

See also: AWS API Documentation

Request Syntax

response = client.cancel_job_run(
    id='string',
    virtualClusterId='string'
)
Parameters
  • id (string) --

    [REQUIRED]

    The ID of the job run to cancel.

  • virtualClusterId (string) --

    [REQUIRED]

    The ID of the virtual cluster for which the job run will be canceled.

Return type

dict

Returns

Response Syntax

{
    'id': 'string',
    'virtualClusterId': 'string'
}

Response Structure

  • (dict) --

    • id (string) --

      The output contains the ID of the cancelled job run.

    • virtualClusterId (string) --

      The output contains the virtual cluster ID for which the job run is cancelled.

Exceptions

  • EMRContainers.Client.exceptions.ValidationException
  • EMRContainers.Client.exceptions.InternalServerException