This is an automated email from the ASF dual-hosted git repository. ephraimanierobi pushed a commit to branch v2-9-test in repository https://gitbox.apache.org/repos/asf/airflow.git
commit a3eb5f73d617b7482fdcc81a888e3599f1f63d75 Author: Jarek Potiuk <ja...@potiuk.com> AuthorDate: Sat Apr 6 21:46:01 2024 +0200 Load providers configuration when gunicorn workers start (#38795) When Gunicorn workers start, they do not fork, but start as new Python interpreters and they should also perform loadig of the configuration from installed providers. (cherry picked from commit 042c2acaed7c01933d37c2f8434640ce140a4b27) --- airflow/www/gunicorn_config.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/airflow/www/gunicorn_config.py b/airflow/www/gunicorn_config.py index 851419c4c5..bd8f4ff903 100644 --- a/airflow/www/gunicorn_config.py +++ b/airflow/www/gunicorn_config.py @@ -36,5 +36,8 @@ def post_worker_init(_): def on_starting(server): from airflow.providers_manager import ProvidersManager + providers_manager = ProvidersManager() + # Load providers configuration before forking workers + providers_manager.initialize_providers_configuration() # Load providers before forking workers - ProvidersManager().connection_form_widgets + providers_manager.connection_form_widgets