mik-laj edited a comment on issue #4363: [AIRFLOW-3560] Add WeekEnd & DayOfWeek Sensors URL: https://github.com/apache/incubator-airflow/pull/4363#issuecomment-449889406 What do you think about adding support for many days of the week as a parameter (the ability to provide an array)? Something similar to: ```python t = DayOfWeekSensor( task_id='delivery_day_sensor', week_day_number=[1,3], use_task_execution_day=True, dag=self.dag) ```` It also allows you to specify the weekend. I think that the change is worth introducing, because the sensor will be much more useful after my proposal but also reduces the number of sensor, which makes the environment more user-friendly. In the next stage, it is worth expanding these operators with more units ex. DayOfMonth. In my dream, I would like to see these operators differently. I would like to be able to define simple conditions using an expression ````python t = ExpressionCalendarSensor( task_id='weekday_sensor', expression="date.isoweekday() == 6 or date.isoweekday() == 7", use_task_execution_day=True, dag=self.dag) ````
---------------------------------------------------------------- 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
