Dag Import Error Hidden for existing dags leading to nondescriptive UI errors #17559
Labels
affected_version:2.1
Issues Reported for 2.1
area:webserver
Webserver related Issues
kind:bug
This is a clearly a bug
Python version: 3.7.10
Apache Airflow version: 2.1.1
Apache Airflow Provider versions (please include all providers that are relevant to your bug): None
Kubernetes version (if you are using kubernetes): version.Info{Major:"1", Minor:"18+", GitVersion:"v1.18.19-gke.1701", GitCommit:"d7cecefb99b58e8968f59b59d76448eb1e6ea403", GitTreeState:"clean", BuildDate:"2021-06-23T21:51:59Z", GoVersion:"go1.13.15b4", Compiler:"gc", Platform:"linux/amd64"}
Environment:
What happened:
We upgraded our airflow from 1.10.14 to 2.1.1 (not sure if the recent upgrade is relevant). Several dags already existed in the metadata db at the time of the upgrade. After the upgrade, some of the dags would give the following error messages if you clicked on Code view or Graph view.
Graph view
Code view
We tried deleting one of the affected dags with the "Delete Dag" button and then when the dag file was re-parsed, it through a dag import error, which was helpful.
What you expected to happen:
Get the dag import error immediately, instead of allowing me to click on the dag and get nondescriptive error message.
How to reproduce it:
Anything else we need to know:
It's possible that this problem was affecting our 1.10.14 instance as well. These dags were only checked as part of verifying the upgrade and had not run or been looked at since the change that caused the import error.
The text was updated successfully, but these errors were encountered: