Skip to main content

processing_jobs

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

Overview

Nameprocessing_jobs
TypeResource
Idaws.sagemaker.processing_jobs

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
app_specificationobjectConfigures the processing job to run a specified container image.
auto_ml_job_arnstringThe ARN of an AutoML job associated with this processing job. (pattern: <code>arn:aws[a-z-]:sagemaker:[a-z0-9-]:[0-9]{12}:automl-job/.*</code>)
creation_timestring (date-time)The time at which the processing job was created.
environmentobjectThe environment variables set in the Docker container.
exit_messagestringAn optional string, up to one KB in size, that contains metadata from the processing container when the processing job exits. (pattern: <code>[\S\s]*</code>)
experiment_configobjectAssociates a SageMaker job as a trial component with an experiment and trial. Specified when you call the following APIs: CreateProcessingJob CreateTrainingJob CreateTransformJob
failure_reasonstringA string, up to one KB in size, that contains the reason a processing job failed, if it failed.
last_modified_timestring (date-time)The time at which the processing job was last modified.
monitoring_schedule_arnstringThe ARN of a monitoring schedule for an endpoint associated with this processing job. (pattern: <code>.*</code>)
network_configobjectNetworking options for a processing job.
processing_end_timestring (date-time)The time at which the processing job completed.
processing_inputsarrayThe inputs for a processing job.
processing_job_arnstringThe Amazon Resource Name (ARN) of the processing job. (pattern: <code>arn:aws[a-z-]:sagemaker:[a-z0-9-]:[0-9]{12}:processing-job/[a-zA-Z0-9](-*[a-zA-Z0-9]){0,62}</code>)
processing_job_namestringThe name of the processing job. The name must be unique within an Amazon Web Services Region in the Amazon Web Services account. (pattern: <code>[a-zA-Z0-9](-*[a-zA-Z0-9]){0,62}</code>)
processing_job_statusstringProvides the status of a processing job. (InProgress, Completed, Failed, Stopping, Stopped)
processing_output_configobjectOutput configuration for the processing job.
processing_resourcesobjectIdentifies the resources, ML compute instances, and ML storage volumes to deploy for a processing job. In distributed training, you specify more than one instance.
processing_start_timestring (date-time)The time at which the processing job started.
role_arnstringThe Amazon Resource Name (ARN) of an IAM role that Amazon SageMaker can assume to perform tasks on your behalf. (pattern: <code>arn:aws[a-z-]*:iam::\d{12}:role/?[a-zA-Z_0-9+=,.@-_/]+</code>)
stopping_conditionobjectThe time limit for how long the processing job is allowed to run.
training_job_arnstringThe ARN of a training job associated with this processing job. (pattern: <code>arn:aws[a-z-]:sagemaker:[a-z0-9-]:[0-9]{12}:training-job/[a-zA-Z0-9](-*[a-zA-Z0-9]){0,62}</code>)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_processing_jobselectregionReturns a description of a processing job.
list_processing_jobsselectregionLists processing jobs that satisfy various filters.
create_processing_jobinsertregion, ProcessingJobName, ProcessingResources, AppSpecification, RoleArnCreates a processing job.
delete_processing_jobdeleteregionDeletes a processing job. After Amazon SageMaker deletes a processing job, all of the metadata for the processing job is lost. You can delete only processing jobs that are in a terminal state (Stopped, Failed, or Completed). You cannot delete a job that is in the InProgress or Stopping state. After deleting the job, you can reuse its name to create another processing job.
stop_processing_jobexecregion, ProcessingJobNameStops a processing job.

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
regionstringAWS region (default: us-east-1)

SELECT examples

Returns a description of a processing job.

SELECT
app_specification,
auto_ml_job_arn,
creation_time,
environment,
exit_message,
experiment_config,
failure_reason,
last_modified_time,
monitoring_schedule_arn,
network_config,
processing_end_time,
processing_inputs,
processing_job_arn,
processing_job_name,
processing_job_status,
processing_output_config,
processing_resources,
processing_start_time,
role_arn,
stopping_condition,
training_job_arn
FROM aws.sagemaker.processing_jobs
WHERE region = '{{ region }}' -- required
;

INSERT examples

Creates a processing job.

INSERT INTO aws.sagemaker.processing_jobs (
ProcessingInputs,
ProcessingOutputConfig,
ProcessingJobName,
ProcessingResources,
StoppingCondition,
AppSpecification,
Environment,
NetworkConfig,
RoleArn,
Tags,
ExperimentConfig,
region
)
SELECT
'{{ ProcessingInputs }}',
'{{ ProcessingOutputConfig }}',
'{{ ProcessingJobName }}' /* required */,
'{{ ProcessingResources }}' /* required */,
'{{ StoppingCondition }}',
'{{ AppSpecification }}' /* required */,
'{{ Environment }}',
'{{ NetworkConfig }}',
'{{ RoleArn }}' /* required */,
'{{ Tags }}',
'{{ ExperimentConfig }}',
'{{ region }}'
RETURNING
processing_job_arn
;

DELETE examples

Deletes a processing job. After Amazon SageMaker deletes a processing job, all of the metadata for the processing job is lost. You can delete only processing jobs that are in a terminal state (Stopped, Failed, or Completed). You cannot delete a job that is in the InProgress or Stopping state. After deleting the job, you can reuse its name to create another processing job.

DELETE FROM aws.sagemaker.processing_jobs
WHERE region = '{{ region }}' --required
;

Lifecycle Methods

Stops a processing job.

EXEC aws.sagemaker.processing_jobs.stop_processing_job
@region='{{ region }}' --required
@@json=
'{
"ProcessingJobName": "{{ ProcessingJobName }}"
}'
;