Skip to content

Commit 042c2ac

Browse files
authored
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.
1 parent 4d65f21 commit 042c2ac

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)