Schduler crash when delete a dag on UI. #25130
-
Apache Airflow version2.3.2 (latest released) What happened
What you think should happen insteadScheduler can't crash by DAGs's operation like delete a DAG. How to reproduce1 change a DAG dag_id in the DAG script. Operating SystemCentOS Linux release 7.9.2009 (Core) Versions of Apache Airflow Providers
DeploymentVirtualenv installation Deployment detailsNo response Anything elseOnce. Are you willing to submit PR?
Code of Conduct
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Converted it into discussion as this is kind of expected. Until versioning is implemented, similar problems are expected. We are aware about some of the edge cases like this, but we want to handle them with https://cwiki.apache.org/confluence/display/AIRFLOW/AIP-36+DAG+Versioning - currently you are not supposed to change the dag_id and delete the old one. Airflow does not support versions of the dag when you change or rename them. If you want to rename the dag, Delete it first, copy the old DAG into new file changing the id and then remove the old file. Currently this paragraph describe your DAG evolution: https://airflow.apache.org/docs/apache-airflow/stable/index.html
|
Beta Was this translation helpful? Give feedback.
Converted it into discussion as this is kind of expected.
Until versioning is implemented, similar problems are expected. We are aware about some of the edge cases like this, but we want to handle them with https://cwiki.apache.org/confluence/display/AIRFLOW/AIP-36+DAG+Versioning - currently you are not supposed to change the dag_id and delete the old one. Airflow does not support versions of the dag when you change or rename them. If you want to rename the dag, Delete it first, copy the old DAG into new file changing the id and then remove the old file.
Currently this paragraph describe your DAG evolution: https://airflow.apache.org/docs/apache-airflow/stable/index.html