-
Notifications
You must be signed in to change notification settings - Fork 74
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DAG not found in serialized_dag table #98
Comments
Interesting, thanks for reporting. |
@nvn01234 In my case, the error occurred if it disappeared from UI due to git-sync but remained in the DB you solve this error just delete dag from DB. Use airflow cli |
I had a similar problem. In my case the exception message was like "airflow.exception.SerializedDagNoFound: DAG 'None' not found in serialized_dag table". Fixed with following query in airflow database: |
Hi, everyone! If anyone would have time to create a PR that fixes it, I would be grateful. Fix should not be too complex. |
@elephantum How should I fix it? |
I would suggest altering sqlalchemy query for this case, most probably simple join with dag table would be enough. I.e. filter out such tasks and dags that do not have corresponding dag in DB. |
@elephantum #105 I create PR |
Experienced it as well. |
Same issue here, with airflow-exporter 1.5.1, and airflow 1.10.15, (where for some very old dags we do not have I have a single dag in |
Fixed in v1.5.2 |
Excellent, it works. Thanks @sawaca96 and @elephantum |
Step by step to reproduce the bug:
Currently I have to run a CLI command:
airflow dags delete <dag_id>
to completely remove all records related to a deleted dagThe solution can be: Ignore the deleted dags (don't show them in metrics)
/label ~bug
The text was updated successfully, but these errors were encountered: