You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On the DAGs page, the All, Active, and Paused counts include deleted DAGs. This is different from <= 2.6.1 (at least), where they were not included in the totals. Specifically this is for DAGs for which the DAG files have been removed, not DAGs that have been deleted via the UI.
What you think should happen instead
Including deleted DAGs in those counts is confusing, and this behavior should revert to the previous behavior.
How to reproduce
Create a DAG.
Wait for totals to increment.
Remove the DAG file.
Remove dag file does not remove the records from the DB.
the DAG entries are left. If you want to remove the history you need to remove the records
This isn't about history, this is about how many DAGs are in my Airflow instance right now -- that's what I expect to see on the DAGs page.
Also, there is no way that I'm aware of to delete a DAG via the UI once the files are gone. This is new behavior that the DagModel.deactivate_deleted_dags function seems designed to deal with.
Activity
eladkal commentedon Aug 24, 2023
Remove dag file does not remove the records from the DB.
the DAG entries are left. If you want to remove the history you need to remove the records
joeknize-bc commentedon Aug 24, 2023
This isn't about history, this is about how many DAGs are in my Airflow instance right now -- that's what I expect to see on the DAGs page.
Also, there is no way that I'm aware of to delete a DAG via the UI once the files are gone. This is new behavior that the DagModel.deactivate_deleted_dags function seems designed to deal with.
boushphong commentedon Aug 26, 2023
I created a PR for this issue at: #33778
@potiuk @eladkal Could you take a look? 🙇
potiuk commentedon Aug 27, 2023
Merged and marked for 2.7.1