Calendar view infinite loop for @continuous
DAGs
#37902
Labels
affected_version:2.8
Issues Reported for 2.8
area:webserver
Webserver related Issues
kind:bug
This is a clearly a bug
Apache Airflow version
main (development)
If "Other Airflow 2 version" selected, which one?
No response
What happened?
The
/dags/<string:dag_id>/calendar
view does not open for DAGs, that haveschedule='@continuous'
.It happens because this loop in
airflow.www.views.Airflow.calendar
is practically infinite.The
prev_logical_date
andcurr_info.logical_date
are both set totimezone.utcnow()
at consecutive loop iterations. This is whycurr_info.logical_date <= prev_logical_date
never fails andcurr_info.logical_date.year != year
waits for the end of the year.What you think should happen instead?
I'm not sure, what is the best way to solve this:
dag.timetable
isContinuousTimetable
curr_info.logical_date
andprev_logical_date
is at least some amount - 1 minute or so.How to reproduce
Make
@continuous
DAG and check the calendar view.Operating System
Versions of Apache Airflow Providers
No response
Deployment
Other
Deployment details
No response
Anything else?
No response
Are you willing to submit PR?
Code of Conduct
The text was updated successfully, but these errors were encountered: