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/07/29 09:08:16 UTC

[GitHub] [airflow] ashb commented on a change in pull request #17304: More optimized lazy-loading of provider information

ashb commented on a change in pull request #17304:
URL: https://github.com/apache/airflow/pull/17304#discussion_r678968079



##########
File path: airflow/__init__.py
##########
@@ -74,11 +74,13 @@ def __getattr__(name):
 if not settings.LAZY_LOAD_PROVIDERS:
     from airflow import providers_manager
 
-    providers_manager.ProvidersManager().initialize_providers_manager()
+    manager = providers_manager.ProvidersManager()
+    manager.initialize_providers_list()

Review comment:
       Rather than having to "remember" call this everywhere we need it, I think it would be best if init hooks and init extra_links called this itself.




-- 
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: commits-unsubscribe@airflow.apache.org

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