airflow.providers.amazon.aws.sensors.sagemaker
¶
Module Contents¶
Classes¶
Contains general sensor behavior for SageMaker. |
|
Poll the endpoint state until it reaches a terminal state; raise AirflowException with the failure reason. |
|
Poll the transform job until it reaches a terminal state; raise AirflowException with the failure reason. |
|
Poll the tuning state until it reaches a terminal state; raise AirflowException with the failure reason. |
|
Poll the training job until it reaches a terminal state; raise AirflowException with the failure reason. |
|
Poll the pipeline until it reaches a terminal state; raise AirflowException with the failure reason. |
|
Poll the auto ML job until it reaches a terminal state; raise AirflowException with the failure reason. |
|
Poll the processing job until it reaches a terminal state; raise AirflowException with the failure reason. |
- class airflow.providers.amazon.aws.sensors.sagemaker.SageMakerBaseSensor(*, aws_conn_id='aws_default', resource_type='job', **kwargs)[source]¶
Bases:
airflow.sensors.base.BaseSensorOperator
Contains general sensor behavior for SageMaker.
Subclasses should implement get_sagemaker_response() and state_from_response() methods. Subclasses should also implement NON_TERMINAL_STATES and FAILED_STATE methods.
- class airflow.providers.amazon.aws.sensors.sagemaker.SageMakerEndpointSensor(*, endpoint_name, **kwargs)[source]¶
Bases:
SageMakerBaseSensor
Poll the endpoint state until it reaches a terminal state; raise AirflowException with the failure reason.
See also
For more information on how to use this sensor, take a look at the guide: Wait on an Amazon SageMaker endpoint state
- Parameters
endpoint_name – Name of the endpoint instance to watch.
- template_fields: collections.abc.Sequence[str] = ('endpoint_name',)[source]¶
- template_ext: collections.abc.Sequence[str] = ()[source]¶
- class airflow.providers.amazon.aws.sensors.sagemaker.SageMakerTransformSensor(*, job_name, **kwargs)[source]¶
Bases:
SageMakerBaseSensor
Poll the transform job until it reaches a terminal state; raise AirflowException with the failure reason.
See also
For more information on how to use this sensor, take a look at the guide: Wait on an Amazon SageMaker transform job state
- Parameters
job_name (str) – Name of the transform job to watch.
- template_fields: collections.abc.Sequence[str] = ('job_name',)[source]¶
- template_ext: collections.abc.Sequence[str] = ()[source]¶
- class airflow.providers.amazon.aws.sensors.sagemaker.SageMakerTuningSensor(*, job_name, **kwargs)[source]¶
Bases:
SageMakerBaseSensor
Poll the tuning state until it reaches a terminal state; raise AirflowException with the failure reason.
See also
For more information on how to use this sensor, take a look at the guide: Wait on an Amazon SageMaker tuning job state
- Parameters
job_name (str) – Name of the tuning instance to watch.
- template_fields: collections.abc.Sequence[str] = ('job_name',)[source]¶
- template_ext: collections.abc.Sequence[str] = ()[source]¶
- class airflow.providers.amazon.aws.sensors.sagemaker.SageMakerTrainingSensor(*, job_name, print_log=True, **kwargs)[source]¶
Bases:
SageMakerBaseSensor
Poll the training job until it reaches a terminal state; raise AirflowException with the failure reason.
See also
For more information on how to use this sensor, take a look at the guide: Wait on an Amazon SageMaker training job state
- Parameters
job_name – Name of the training job to watch.
print_log – Prints the cloudwatch log if True; Defaults to True.
- template_fields: collections.abc.Sequence[str] = ('job_name',)[source]¶
- template_ext: collections.abc.Sequence[str] = ()[source]¶
- class airflow.providers.amazon.aws.sensors.sagemaker.SageMakerPipelineSensor(*, pipeline_exec_arn, verbose=True, **kwargs)[source]¶
Bases:
SageMakerBaseSensor
Poll the pipeline until it reaches a terminal state; raise AirflowException with the failure reason.
See also
For more information on how to use this sensor, take a look at the guide: Wait on an Amazon SageMaker pipeline execution state
- Parameters
- template_fields: collections.abc.Sequence[str] = ('pipeline_exec_arn',)[source]¶
- class airflow.providers.amazon.aws.sensors.sagemaker.SageMakerAutoMLSensor(*, job_name, **kwargs)[source]¶
Bases:
SageMakerBaseSensor
Poll the auto ML job until it reaches a terminal state; raise AirflowException with the failure reason.
See also
For more information on how to use this sensor, take a look at the guide: Wait on an Amazon SageMaker AutoML experiment state
- Parameters
job_name (str) – unique name of the AutoML job to watch.
- template_fields: collections.abc.Sequence[str] = ('job_name',)[source]¶
- class airflow.providers.amazon.aws.sensors.sagemaker.SageMakerProcessingSensor(*, job_name, **kwargs)[source]¶
Bases:
SageMakerBaseSensor
Poll the processing job until it reaches a terminal state; raise AirflowException with the failure reason.
See also
For more information on how to use this sensor, take a look at the guide: Wait on an Amazon SageMaker processing job state
- Parameters
job_name (str) – Name of the processing job to watch.
- template_fields: collections.abc.Sequence[str] = ('job_name',)[source]¶
- template_ext: collections.abc.Sequence[str] = ()[source]¶