Skip to main content

job_runs

Creates, updates, deletes, gets or lists a job_runs resource.

Overview

Namejob_runs
TypeResource
Idaws.emr_containers.job_runs

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringThe ID of the job run. (pattern: <code>[0-9a-z]+</code>)
namestringThe name of the job run. (pattern: <code>[.-_/#A-Za-z0-9]+</code>)
arnstringThe ARN of job run. (pattern: <code>^arn:(aws[a-zA-Z0-9-]*):emr-containers:.+:(\d{12}):/virtualclusters/[0-9a-zA-Z]+/jobruns/[0-9a-zA-Z]+$</code>)
client_tokenstringThe client token used to start a job run. (pattern: <code>.\S.</code>)
configuration_overridesobjectThe configuration settings that are used to override default configuration.
created_atstring (date-time)The date and time when the job run was created.
created_bystringThe user who created the job run. (pattern: <code>^arn:(aws[a-zA-Z0-9-]*):(iam|sts)::(\d{12})?:[\w/+=,.@-]+$</code>)
execution_role_arnstringThe execution role ARN of the job run. (pattern: <code>^arn:(aws[a-zA-Z0-9-]*):iam::(\d{12})?:(role((\u002F)|(\u002F[\u0021-\u007F]+\u002F))[\w+=,.@-]+)$</code>)
failure_reasonstringThe reasons why the job run has failed. (INTERNAL_ERROR, USER_ERROR, VALIDATION_ERROR, CLUSTER_UNAVAILABLE)
finished_atstring (date-time)The date and time when the job run has finished.
job_driverobjectParameters of job driver for the job run.
release_labelstringThe release version of Amazon EMR. (pattern: <code>[.-_/A-Za-z0-9]+</code>)
retry_policy_configurationobjectThe configuration of the retry policy that the job runs on.
retry_policy_executionobjectThe current status of the retry policy executed on the job.
statestringThe state of the job run. (PENDING, SUBMITTED, RUNNING, FAILED, CANCELLED, CANCEL_PENDING, COMPLETED)
state_detailsstringAdditional details of the job run state. (pattern: <code>.\S.</code>)
tagsobjectThe assigned tags of the job run.
virtual_cluster_idstringThe ID of the job run's virtual cluster. (pattern: <code>[0-9a-z]+</code>)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_job_runselectjob_run_id, virtual_cluster_id, regionDisplays detailed information about 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.
list_job_runsselectvirtual_cluster_id, regioncreatedBefore, createdAfter, name, states, maxResults, nextTokenLists job runs based on a set of parameters. 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.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
job_run_idstringThe ID of the job run request.
regionstringAWS region (default: us-east-1)
virtual_cluster_idstringThe ID of the virtual cluster for which to list the job run.
createdAfterstring (date-time)The date and time after which the job runs were submitted.
createdBeforestring (date-time)The date and time before which the job runs were submitted.
maxResultsintegerThe maximum number of job runs that can be listed.
namestringThe name of the job run.
nextTokenstringThe token for the next set of job runs to return.
statesarrayThe states of the job run.

SELECT examples

Displays detailed information about 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.

SELECT
id,
name,
arn,
client_token,
configuration_overrides,
created_at,
created_by,
execution_role_arn,
failure_reason,
finished_at,
job_driver,
release_label,
retry_policy_configuration,
retry_policy_execution,
state,
state_details,
tags,
virtual_cluster_id
FROM aws.emr_containers.job_runs
WHERE job_run_id = '{{ job_run_id }}' -- required
AND virtual_cluster_id = '{{ virtual_cluster_id }}' -- required
AND region = '{{ region }}' -- required
;