Reputation: 4154
When I try to delete the dag in Web UI, it turned out:
Dag id zhihu_qr_dag is still in DagBag. Remove the DAG file first.
But actually the dag is an invalid dag, I can't enter the dag page. when I click the dag, it showed:
DAG "zhihu_qr_dag" seems to be missing.
How can I handle this? Thanks in advance!
Upvotes: 3
Views: 1068
Reputation: 556
For anyone who stumbles on this issue, who can't delete a DAG no matter what they do, don't forget to check the DAG IDs as defined in your DAG files. If you've copy/pasted code between files, you might have left a DAG ID that you wanted to delete, but which now doesn't correspond to the file's name itself. Airflow only displays by DAG ID so it's easy to delete the file corresponding to that name but forget you have the ID in some other file.
Upvotes: 2
Reputation: 336
I have experienced this scenario, the dag folder should contain zhihu_qr_dag
. It should be removed first.
Upvotes: 0
Reputation: 2007
Just rename the related dag file and that you will be able to remove the dag from adming panel.
Upvotes: 2