Menu
AWS Glue
Developer Guide

Job Runs

Data Types

JobRun Structure

Contains information about a job run.

Fields

  • Id – UTF-8 string, not less than 1 or more than 255 bytes long, matching the Single-line string pattern.

    The ID of this job run.

  • Attempt – Number (integer).

    The number of the attempt to run this job.

  • PreviousRunId – UTF-8 string, not less than 1 or more than 255 bytes long, matching the Single-line string pattern.

    The ID of the previous run of this job. For example, the JobRunId specified in the StartJobRun action.

  • TriggerName – UTF-8 string, not less than 1 or more than 255 bytes long, matching the Single-line string pattern.

    The name of the trigger that started this job run.

  • JobName – UTF-8 string, not less than 1 or more than 255 bytes long, matching the Single-line string pattern.

    The name of the job definition being used in this run.

  • StartedOn – Timestamp.

    The date and time at which this job run was started.

  • LastModifiedOn – Timestamp.

    The last time this job run was modified.

  • CompletedOn – Timestamp.

    The date and time this job run completed.

  • JobRunState – UTF-8 string (valid values: STARTING | RUNNING | STOPPING | STOPPED | SUCCEEDED | FAILED | TIMEOUT).

    The current state of the job run.

  • Arguments – A map array of key-value pairs

    Each key is a UTF-8 string.

    Each value is a UTF-8 string.

    The job arguments associated with this run. These override equivalent default arguments set for the job.

    You can specify arguments here that your own job-execution script consumes, as well as arguments that AWS Glue itself consumes.

    For information about how to specify and consume your own job arguments, see the Calling AWS Glue APIs in Python topic in the developer guide.

    For information about the key-value pairs that AWS Glue consumes to set up your job, see the Special Parameters Used by AWS Glue topic in the developer guide.

  • ErrorMessage – UTF-8 string.

    An error message associated with this job run.

  • PredecessorRuns – An array of Predecessors.

    A list of predecessors to this job run.

  • AllocatedCapacity – Number (integer).

    The number of AWS Glue data processing units (DPUs) allocated to this JobRun. From 2 to 100 DPUs can be allocated; the default is 10. A DPU is a relative measure of processing power that consists of 4 vCPUs of compute capacity and 16 GB of memory. For more information, see the AWS Glue pricing page.

  • ExecutionTime – Number (integer).

    The amount of time (in seconds) that the job run consumed resources.

  • Timeout – Number (integer), at least 1.

    The JobRun timeout in minutes. This is the maximum time that a job run can consume resources before it is terminated and enters TIMEOUT status. The default is 2,880 minutes (48 hours). This overrides the timeout value set in the parent job.

  • NotificationProperty – A NotificationProperty object.

    Specifies configuration properties of a job run notification.

Predecessor Structure

A job run that was used in the predicate of a conditional trigger that triggered this job run.

Fields

  • JobName – UTF-8 string, not less than 1 or more than 255 bytes long, matching the Single-line string pattern.

    The name of the job definition used by the predecessor job run.

  • RunId – UTF-8 string, not less than 1 or more than 255 bytes long, matching the Single-line string pattern.

    The job-run ID of the predecessor job run.

JobBookmarkEntry Structure

Defines a point which a job can resume processing.

Fields

  • JobName – UTF-8 string.

    Name of the job in question.

  • Version – Number (integer).

    Version of the job.

  • Run – Number (integer).

    The run ID number.

  • Attempt – Number (integer).

    The attempt ID number.

  • JobBookmark – UTF-8 string.

    The bookmark itself.

BatchStopJobRunSuccessfulSubmission Structure

Records a successful request to stop a specified JobRun.

Fields

  • JobName – UTF-8 string, not less than 1 or more than 255 bytes long, matching the Single-line string pattern.

    The name of the job definition used in the job run that was stopped.

  • JobRunId – UTF-8 string, not less than 1 or more than 255 bytes long, matching the Single-line string pattern.

    The JobRunId of the job run that was stopped.

BatchStopJobRunError Structure

Records an error that occurred when attempting to stop a specified job run.

Fields

  • JobName – UTF-8 string, not less than 1 or more than 255 bytes long, matching the Single-line string pattern.

    The name of the job definition used in the job run in question.

  • JobRunId – UTF-8 string, not less than 1 or more than 255 bytes long, matching the Single-line string pattern.

    The JobRunId of the job run in question.

  • ErrorDetail – An ErrorDetail object.

    Specifies details about the error that was encountered.

Operations

StartJobRun Action (Python: start_job_run)

Starts a job run using a job definition.

Request

  • JobName – UTF-8 string, not less than 1 or more than 255 bytes long, matching the Single-line string pattern. Required.

    The name of the job definition to use.

  • JobRunId – UTF-8 string, not less than 1 or more than 255 bytes long, matching the Single-line string pattern.

    The ID of a previous JobRun to retry.

  • Arguments – A map array of key-value pairs

    Each key is a UTF-8 string.

    Each value is a UTF-8 string.

    The job arguments specifically for this run. They override the equivalent default arguments set for in the job definition itself.

    You can specify arguments here that your own job-execution script consumes, as well as arguments that AWS Glue itself consumes.

    For information about how to specify and consume your own Job arguments, see the Calling AWS Glue APIs in Python topic in the developer guide.

    For information about the key-value pairs that AWS Glue consumes to set up your job, see the Special Parameters Used by AWS Glue topic in the developer guide.

  • AllocatedCapacity – Number (integer).

    The number of AWS Glue data processing units (DPUs) to allocate to this JobRun. From 2 to 100 DPUs can be allocated; the default is 10. A DPU is a relative measure of processing power that consists of 4 vCPUs of compute capacity and 16 GB of memory. For more information, see the AWS Glue pricing page.

  • Timeout – Number (integer), at least 1.

    The JobRun timeout in minutes. This is the maximum time that a job run can consume resources before it is terminated and enters TIMEOUT status. The default is 2,880 minutes (48 hours). This overrides the timeout value set in the parent job.

  • NotificationProperty – A NotificationProperty object.

    Specifies configuration properties of a job run notification.

Response

  • JobRunId – UTF-8 string, not less than 1 or more than 255 bytes long, matching the Single-line string pattern.

    The ID assigned to this job run.

Errors

  • InvalidInputException

  • EntityNotFoundException

  • InternalServiceException

  • OperationTimeoutException

  • ResourceNumberLimitExceededException

  • ConcurrentRunsExceededException

BatchStopJobRun Action (Python: batch_stop_job_run)

Stops one or more job runs for a specified job definition.

Request

  • JobName – UTF-8 string, not less than 1 or more than 255 bytes long, matching the Single-line string pattern. Required.

    The name of the job definition for which to stop job runs.

  • JobRunIds – An array of UTF-8 strings, not less than 1 or more than 25 items in the array. Required.

    A list of the JobRunIds that should be stopped for that job definition.

Response

  • SuccessfulSubmissions – An array of BatchStopJobRunSuccessfulSubmissions.

    A list of the JobRuns that were successfully submitted for stopping.

  • Errors – An array of BatchStopJobRunErrors.

    A list of the errors that were encountered in tryng to stop JobRuns, including the JobRunId for which each error was encountered and details about the error.

Errors

  • InvalidInputException

  • InternalServiceException

  • OperationTimeoutException

GetJobRun Action (Python: get_job_run)

Retrieves the metadata for a given job run.

Request

  • JobName – UTF-8 string, not less than 1 or more than 255 bytes long, matching the Single-line string pattern. Required.

    Name of the job definition being run.

  • RunId – UTF-8 string, not less than 1 or more than 255 bytes long, matching the Single-line string pattern. Required.

    The ID of the job run.

  • PredecessorsIncluded – Boolean.

    True if a list of predecessor runs should be returned.

Response

  • JobRun – A JobRun object.

    The requested job-run metadata.

Errors

  • InvalidInputException

  • EntityNotFoundException

  • InternalServiceException

  • OperationTimeoutException

GetJobRuns Action (Python: get_job_runs)

Retrieves metadata for all runs of a given job definition.

Request

  • JobName – UTF-8 string, not less than 1 or more than 255 bytes long, matching the Single-line string pattern. Required.

    The name of the job definition for which to retrieve all job runs.

  • NextToken – UTF-8 string.

    A continuation token, if this is a continuation call.

  • MaxResults – Number (integer), not less than 1 or more than 1000.

    The maximum size of the response.

Response

  • JobRuns – An array of JobRuns.

    A list of job-run metatdata objects.

  • NextToken – UTF-8 string.

    A continuation token, if not all reequested job runs have been returned.

Errors

  • InvalidInputException

  • EntityNotFoundException

  • InternalServiceException

  • OperationTimeoutException

ResetJobBookmark Action (Python: reset_job_bookmark)

Resets a bookmark entry.

Request

  • JobName – UTF-8 string. Required.

    The name of the job in question.

Response

Errors

  • EntityNotFoundException

  • InvalidInputException

  • InternalServiceException

  • OperationTimeoutException