BatchOperatorTrigger

Astronomer Providers

Checks for the state of a previously submitted job to AWS Batch. BatchOperatorTrigger 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, usually unknown (None) until the submit_job operation gets the jobId defined by AWS Batch
job_namethe name for the job that will run on AWS Batch (templated)
job_definitionthe job definition name on AWS Batch
job_queuethe queue name on AWS Batch
overridesthe containerOverrides parameter for boto3 (templated)
array_propertiesthe arrayProperties parameter for boto3
parametersthe parameters for boto3 (templated)
waitersa BatchWaiters object (see note below); if None, polling is used with max_retries and status_retries.
tagscollection of tags to apply to the AWS Batch job submission if None, no tags are submitted
max_retriesexponential back-off retries, 4200 = 48 hours; polling is only used when waiters is None
status_retriesnumber of HTTP retries to get job status, 10; polling is only used when waiters is None
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)

Documentation

Checks for the state of a previously submitted job to AWS Batch. BatchOperatorTrigger is fired as deferred class with params to poll the job state in Triggerer

Was this page helpful?