ashb commented on a change in pull request #2747: AIRFLOW-1772: Fix bug with 
handling cron expressions as an schedule i…
URL: https://github.com/apache/incubator-airflow/pull/2747#discussion_r230809491
 
 

 ##########
 File path: airflow/contrib/sensors/gcs_sensor.py
 ##########
 @@ -67,8 +66,7 @@ def ts_function(context):
     behaviour is check for the object being updated after execution_date +
     schedule_interval.
     """
-    return context['execution_date'] + context['dag'].schedule_interval
-
+    return context['dag'].following_schedule(context['execution_date'])
 
 Review comment:
   Isn't this already in the context as `context['next_execution_date']`?

----------------------------------------------------------------
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