dilnazanlid commented on code in PR #72442:
URL: https://github.com/apache/airflow/pull/72442#discussion_r3951210909
##########
airflow-core/src/airflow/dag_processing/bundles/base.py:
##########
@@ -444,6 +446,16 @@ def lock(self):
fcntl.flock(lock_file, LOCK_UN)
self._locked = False
+ @property
+ def importer_registry(self) -> DagImporterRegistry:
+ """Get the DAG importer registry for this bundle."""
+ if self._importer_registry is None:
+ from airflow.dag_processing.bundles.manager import
DagBundlesManager
+
+ manager = DagBundlesManager()
+ self._importer_registry = manager.get_importer_registry(self.name)
+ return self._importer_registry
+
Review Comment:
You are right, as we moved the importer config and registry to the
DagImporterRegistry class - there is no need for this, removed.
--
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]