airflow.providers.amazon.aws.sensors.batch
¶
Module Contents¶
Classes¶
Asks for the state of the Batch Job execution until it reaches a failure state or success state. |
|
Asks for the state of the Batch compute environment until it reaches a failure state or success state. |
|
Asks for the state of the Batch job queue until it reaches a failure state or success state. |
- class airflow.providers.amazon.aws.sensors.batch.BatchSensor(*, job_id, aws_conn_id='aws_default', region_name=None, **kwargs)[source]¶
Bases:
airflow.sensors.base.BaseSensorOperator
Asks for the state of the Batch Job execution until it reaches a failure state or success state. If the job fails, the task will fail.
See also
For more information on how to use this sensor, take a look at the guide: Wait on an AWS Batch job state
- Parameters
- class airflow.providers.amazon.aws.sensors.batch.BatchComputeEnvironmentSensor(compute_environment, aws_conn_id='aws_default', region_name=None, **kwargs)[source]¶
Bases:
airflow.sensors.base.BaseSensorOperator
Asks for the state of the Batch compute environment until it reaches a failure state or success state. If the environment fails, the task will fail.
See also
For more information on how to use this sensor, take a look at the guide: Wait on an AWS Batch compute environment status
- Parameters
- class airflow.providers.amazon.aws.sensors.batch.BatchJobQueueSensor(job_queue, treat_non_existing_as_deleted=False, aws_conn_id='aws_default', region_name=None, **kwargs)[source]¶
Bases:
airflow.sensors.base.BaseSensorOperator
Asks for the state of the Batch job queue until it reaches a failure state or success state. If the queue fails, the task will fail.
See also
For more information on how to use this sensor, take a look at the guide: Wait on an AWS Batch job queue status
- Parameters
job_queue (str) – Batch job queue name
treat_non_existing_as_deleted (bool) – If True, a non-existing Batch job queue is considered as a deleted queue and as such a valid case.
aws_conn_id (str) – aws connection to use, defaults to ‘aws_default’
region_name (str | None) – aws region name associated with the client