EmrJobFlowSensor
AmazonAsks for the state of the EMR JobFlow (Cluster) until it reaches any of the target states. If it fails the sensor errors, failing the task.
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_flow_idRequiredjob_flow_id to check the state of
target_statesthe target states, sensor waits until job flow reaches any of these states
failed_statesthe failure states, sensor fails when job flow reaches any of these states
Documentation
Asks for the state of the EMR JobFlow (Cluster) until it reaches any of the target states. If it fails the sensor errors, failing the task.
With the default target states, sensor waits cluster to be terminated. When target_states is set to [‘RUNNING’, ‘WAITING’] sensor waits until job flow to be ready (after ‘STARTING’ and ‘BOOTSTRAPPING’ states)
See also
For more information on how to use this sensor, take a look at the guide: Wait on an Amazon EMR job flow state