ephraimbuddy commented on code in PR #66948:
URL: https://github.com/apache/airflow/pull/66948#discussion_r3246985804


##########
airflow-core/src/airflow/dag_processing/manager.py:
##########
@@ -411,17 +406,29 @@ def deactivate_stale_dags(
     ):
         """Detect and deactivate DAGs which are no longer present in files."""
         to_deactivate = set()
-        bundle_names = {b.name for b in self._dag_bundles}
+        active_bundles = set(
+            
session.scalars(select(DagBundleModel.name).where(DagBundleModel.active.is_(True))).all()
+        )

Review Comment:
   Makes sense 



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