feng-tao commented on a change in pull request #3596: [AIRFLOW-2747] Explicit 
re-schedule of sensors
URL: https://github.com/apache/incubator-airflow/pull/3596#discussion_r218225374
 
 

 ##########
 File path: airflow/sensors/base_sensor_operator.py
 ##########
 @@ -75,11 +104,24 @@ def execute(self, context):
                     raise AirflowSkipException('Snap. Time is OUT.')
                 else:
                     raise AirflowSensorTimeout('Snap. Time is OUT.')
-            sleep(self.poke_interval)
+            if self.reschedule:
+                reschedule_date = timezone.utcnow() + timedelta(
 
 Review comment:
   and should it be `reschedule_date = started_at + timedelta( `?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to