Skip to content

Commit a3eb5f7

Browse files
potiukephraimbuddy
authored andcommitted
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 042c2ac)
1 parent 920921e commit a3eb5f7

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

airflow/www/gunicorn_config.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,5 +36,8 @@ def post_worker_init(_):
3636
def on_starting(server):
3737
from airflow.providers_manager import ProvidersManager
3838

39+
providers_manager = ProvidersManager()
40+
# Load providers configuration before forking workers
41+
providers_manager.initialize_providers_configuration()
3942
# Load providers before forking workers
40-
ProvidersManager().connection_form_widgets
43+
providers_manager.connection_form_widgets

0 commit comments

Comments
 (0)