pedresnyman commented on a change in pull request #11883:
URL: https://github.com/apache/airflow/pull/11883#discussion_r517137237



##########
File path: airflow/providers/amazon/aws/sensors/emr_step.py
##########
@@ -21,24 +21,34 @@
 from airflow.providers.amazon.aws.sensors.emr_base import EmrBaseSensor
 from airflow.utils.decorators import apply_defaults
 
+from airflow.exceptions import AirflowException
+from airflow.models.xcom import XCOM_RETURN_KEY
+
 
 class EmrStepSensor(EmrBaseSensor):
     """
     Asks for the state of the step until it reaches any of the target states.
+    If no step Id has been provided the sensor retrieves all steps and current 
states
+    and will continue to ask until all steps reaches any of the target states.

Review comment:
       Hi @feluelle, 
    
   The EmrJobFlowSensor can work yes. Can we add a xcom_push to the 
EmrJobFlowSensor so that we have a list of all steps? So then we have all the 
steps and the step states.
   
   With that functionality added you can always rerun a failed step instead or 
re-running all of the steps.
   
   Regards




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to