Asks for the state of the Batch Job execution 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)¶
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.
For more information on how to use this sensor, take a look at the guide: Wait on an AWS Batch job state
- template_fields :Sequence[str] = ['job_id']¶
- template_ext :Sequence[str] = ¶
- ui_color = #66c3ff¶
- poke(self, context)¶
Function that the sensors defined while deriving this class should override.
Create and return a BatchClientHook