BatchSensor

Amazon

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.

View on GitHub

Last Updated: Mar. 7, 2022

Access Instructions

Install the Amazon provider package into your Airflow environment.

Import the module into your DAG file and instantiate it with your desired params.

Parameters

job_idRequiredBatch job_id to check the state for
aws_conn_idaws connection to use, defaults to ‘aws_default’

Documentation

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

Was this page helpful?