You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2019/01/10 22:49:11 UTC

[GitHub] stale[bot] closed pull request #2747: AIRFLOW-1772: Fix bug with handling cron expressions as an schedule i…

stale[bot] closed pull request #2747: AIRFLOW-1772: Fix bug with handling cron expressions as an schedule i…
URL: https://github.com/apache/airflow/pull/2747
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/airflow/contrib/sensors/gcs_sensor.py b/airflow/contrib/sensors/gcs_sensor.py
index 384e26fe04..1106cfdee0 100644
--- a/airflow/contrib/sensors/gcs_sensor.py
+++ b/airflow/contrib/sensors/gcs_sensor.py
@@ -15,7 +15,6 @@
 from airflow.operators.sensors import BaseSensorOperator
 from airflow.utils.decorators import apply_defaults
 
-
 class GoogleCloudStorageObjectSensor(BaseSensorOperator):
     """
     Checks for the existence of a file in Google Cloud Storage.
@@ -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'])
 
 class GoogleCloudStorageObjectUpdatedSensor(BaseSensorOperator):
     """


 

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services