:mod:`airflow.contrib.sensors.emr_job_flow_sensor` ================================================== .. py:module:: airflow.contrib.sensors.emr_job_flow_sensor Module Contents --------------- .. py:class:: EmrJobFlowSensor(job_flow_id, *args, **kwargs) Bases::class:`airflow.contrib.sensors.emr_base_sensor.EmrBaseSensor` Asks for the state of the JobFlow until it reaches a terminal state. If it fails the sensor errors, failing the task. :param job_flow_id: job_flow_id to check the state of :type job_flow_id: str .. attribute:: NON_TERMINAL_STATES :annotation: = ['STARTING', 'BOOTSTRAPPING', 'RUNNING', 'WAITING', 'TERMINATING'] .. attribute:: FAILED_STATE :annotation: = ['TERMINATED_WITH_ERRORS'] .. attribute:: template_fields :annotation: = ['job_flow_id'] .. attribute:: template_ext :annotation: = [] .. method:: get_emr_response(self) .. staticmethod:: state_from_response(response)