BatchSensorAsync

Astronomer Providers

Given a job ID of a Batch Job, poll for the job status asynchronously until it reaches a failure or a success state. If the job fails, the task will fail.

Access Instructions

Install the Astronomer Providers provider package into your Airflow environment.

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

Parameters

job_idBatch job_id to check the state for
aws_conn_idaws connection to use, defaults to ‘aws_default’
region_nameregion name to use in AWS Hook Override the region_name in connection (if provided)
poll_intervalpolling period in seconds to check for the status of the job

Documentation

Given a job ID of a Batch Job, poll for the job status asynchronously until it reaches a failure or a success state. If the job fails, the task will fail.

Was this page helpful?