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/03 10:51:48 UTC

[GitHub] kaxil closed pull request #4431: [AIRFLOW-XXX] Fix WeekDay Sensor Example

kaxil closed pull request #4431: [AIRFLOW-XXX] Fix WeekDay Sensor Example
URL: https://github.com/apache/incubator-airflow/pull/4431
 
 
   

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/weekday_sensor.py b/airflow/contrib/sensors/weekday_sensor.py
index 4cff263f38..1a7a702aef 100644
--- a/airflow/contrib/sensors/weekday_sensor.py
+++ b/airflow/contrib/sensors/weekday_sensor.py
@@ -53,7 +53,7 @@ class DayOfWeekSensor(BaseSensorOperator):
 
         weekend_check = DayOfWeekSensor(
             task_id='weekend_check',
-            week_day={WeekDay.Saturday, WeekDay.Sunday},
+            week_day={WeekDay.SATURDAY, WeekDay.SUNDAY},
             use_task_execution_day=True,
             dag=dag)
 
@@ -63,7 +63,7 @@ class DayOfWeekSensor(BaseSensorOperator):
             * ``"MONDAY"``,
             * ``{"Saturday", "Sunday"}``
             * ``{WeekDay.TUESDAY}``
-            * ``{WeekDay.Saturday, WeekDay.Sunday}``
+            * ``{WeekDay.SATURDAY, WeekDay.SUNDAY}``
     :type week_day: set or str or WeekDay
     :param use_task_execution_day: If ``True``, uses task's execution day to compare
         with week_day. Execution Date is Useful for backfilling.


 

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