msumit opened a new pull request #11344: URL: https://github.com/apache/airflow/pull/11344
Basically fixing 2 issues: **Issue 1**: When a DAG has the wrong schedule_interval, it should be treated as a broken dag, but it would be appearing on UI, and people can trigger it as well and wait for to get process, which would eventually never going to happen. The issue is in dagbag.py where it is being added into dagbag.dags even if the schedule_interval is incorrect. To reproduce, put some garbage interval in a test dag. **Issue 2**: Not sure if it was introduced recently, but IIRC scheduler used to mark dags inactive if it can't find it anymore, something which was not happening. Found that in scheduler.py, the control never comes out of `_run_scheduler_loop` method and never calls `deactivate_stale_dags` method. To reproduce, delete a dag and wait for it to automatically disappear. _Haven't tested with serialization ON or with Scheduler HA thing yet._ ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: [email protected]
