tardunge commented on code in PR #63928:
URL: https://github.com/apache/airflow/pull/63928#discussion_r3147686273


##########
airflow-core/src/airflow/dag_processing/bundles/manager.py:
##########
@@ -368,5 +384,129 @@ def view_url(self, name: str, version: str | None = None) 
-> str | None:
             DeprecationWarning,
             stacklevel=2,
         )
-        bundle = self.get_bundle(name, version)
-        return bundle.view_url(version=version)
+        try:
+            bundle = self.get_bundle(name, version)
+            return bundle.view_url(version=version)
+        except ValueError:
+            # Bundle no longer configured, return None
+            self.log.debug("Bundle '%s' is no longer configured, cannot get 
view URL", name)
+            return None
+
+    def get_bundle_path_safe(self, name: str) -> Path | None:
+        """
+        Safely get a bundle's path without raising errors if bundle doesn't 
exist.
+
+        :param name: The name of the DAG bundle.
+        :return: The bundle path if configured, None otherwise.
+        """
+        try:
+            bundle = self.get_bundle(name)
+            return bundle.path
+        except ValueError:
+            # Bundle no longer configured
+            self.log.debug("Bundle '%s' is no longer configured, cannot get 
path", name)
+            return None
+
+    def _parse_config_from_path(self, config_path: str) -> None:
+        """
+        Parse DAG bundle configurations from JSON files in a directory.
+
+        :param config_path: Path to directory containing JSON config files
+        """
+        path = Path(config_path)
+        if not path.exists():
+            self.log.warning("DAG bundle config path does not exist: %s", 
config_path)
+            return

Review Comment:
   Fixed in 368bfa50 — _parse_config_from_path now clears both _bundle_config 
and _config_path_mtime on the missing-directory and no-valid-configs 
early-return paths, so removed bundles get cleaned up



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