mattymo opened a new issue, #31721:
URL: https://github.com/apache/airflow/issues/31721

   ### Apache Airflow version
   
   2.6.1
   
   ### What happened
   
   I have a custom class HolidayCronTimeTable which inherits 
CronDataIntervalTimetable as a plugin. It correctly shows the future execution 
dates in `airflow dags next-execution -n 30 test_timetable`, skipping holidays 
such as June 19 or July 4.
   
   If I browse to http://myhost:8080/dags/test_timetable/calendar, I can see 
that all weekdays are ticked as planned according to the original cron 
expression. 
   
   
   
   ### What you think should happen instead
   
   www/views.py should be updated to use the _get_next method from the 
timetable class used instead of blindly using croniter.
   
   ### How to reproduce
   
   Create a custom class that wraps CronDataIntervalTimetable that overrides 
_gen_next() method and skips 1 or more dates. Store it in plugins directory. 
Create a DAG that uses it as a timetable.
   
   ### Operating System
   
   CentOS 7
   
   ### Versions of Apache Airflow Providers
   
   _No response_
   
   ### Deployment
   
   Virtualenv installation
   
   ### Deployment details
   
   _No response_
   
   ### Anything else
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [ ] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of 
Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to