BatchSensorTrigger

Astronomer Providers

Checks for the status of a submitted job_id to AWS Batch until it reaches a failure or a success state. BatchSensorTrigger is fired as deferred class with params to poll the job state in Triggerer

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_idthe job ID, to poll for job completion or not
aws_conn_idconnection id of AWS credentials / region name. If None, credential boto3 strategy will be used
region_nameAWS region name to use Override the region_name in connection (if provided)
poke_intervalpolling period in seconds to check for the status of the job

Documentation

Checks for the status of a submitted job_id to AWS Batch until it reaches a failure or a success state. BatchSensorTrigger is fired as deferred class with params to poll the job state in Triggerer

Was this page helpful?