You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2021/03/01 18:17:42 UTC

[GitHub] [airflow] leonsmith edited a comment on issue #11901: DAGs remain in the UI after renaming the dag_id in the same python file

leonsmith edited a comment on issue #11901:
URL: https://github.com/apache/airflow/issues/11901#issuecomment-788162128


   Started to debug this a little.
   
   I’m thinking the problem is the wrong assumption that you can set `is_active=True` on any dags with the same file path.
   So the fix should be patching out the else statement here:
   https://github.com/apache/airflow/blob/1.10.12/airflow/models/dag.py#L1917
   
   I think `is_active` is set to `True` when the we call the DagBag `sync_to_db` method in the when parsing the dags.
   
   Going to run a bit of a test & will update to see if that resolves the issue 


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org