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 2020/03/09 11:53:58 UTC

[GitHub] [airflow] ashb commented on a change in pull request #7644: [AIRFLOW-7003] Lazy load all plguins

ashb commented on a change in pull request #7644: [AIRFLOW-7003] Lazy load all plguins
URL: https://github.com/apache/airflow/pull/7644#discussion_r389611686
 
 

 ##########
 File path: airflow/plugins_manager.py
 ##########
 @@ -183,103 +202,116 @@ def make_module(name: str, objects: List[Any]):
 # pylint: enable=protected-access
 
 
-# Plugin components to integrate as modules
-operators_modules = []
-sensors_modules = []
-hooks_modules = []
-executors_modules = []
-macros_modules = []
+def load_plugins():
+    """
+    Load plugins from plugins directory and entrypoints.
+    Plugins are only loaded if they have not been previously loaded.
 
 Review comment:
   ```suggestion
   
       Plugins are only loaded if they have not been previously loaded.
   ```

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services