utkarsharma2 commented on code in PR #41433:
URL: https://github.com/apache/airflow/pull/41433#discussion_r1734103554


##########
airflow/dag_processing/manager.py:
##########
@@ -526,6 +526,12 @@ def deactivate_stale_dags(
         dags_parsed = session.execute(query)
 
         for dag in dags_parsed:
+            # When the DAG processor runs as part of the scheduler, and the 
user changes the DAG home folder,
+            # DAGs from the previous DAG home will be marked as stale. Note 
that this change has no impact
+            # on standalone DAG processors.
+            if os.path.commonpath([dag.fileloc, dag_directory]) != 
dag_directory:

Review Comment:
   Sure, I'll update it.



-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to