From abb7735fb3f34023c1144ab5fada86880cfc34c7 Mon Sep 17 00:00:00 2001 From: Pierre Penelon Date: Tue, 9 Jul 2024 21:44:23 +0200 Subject: [PATCH 1/2] Update config.yml --- airflow/config_templates/config.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/airflow/config_templates/config.yml b/airflow/config_templates/config.yml index 69f7f07139f24..3649e2183c204 100644 --- a/airflow/config_templates/config.yml +++ b/airflow/config_templates/config.yml @@ -1688,6 +1688,9 @@ webserver: When using ``gevent`` you might also want to set the ``_AIRFLOW_PATCH_GEVENT`` environment variable to ``"1"`` to make sure gevent patching is done as early as possible. + Be careful to set ``_AIRFLOW_PATCH_GEVENT`` only on webserver as gevent patching may + affect the scheduler behavior via the ``multiprocessing`` sockets module. + See related Issues / PRs for more details: * https://github.com/benoitc/gunicorn/issues/2796 From ca0d974590db6e3a89eba18e70032ab7e83a0726 Mon Sep 17 00:00:00 2001 From: Pierre Penelon Date: Tue, 9 Jul 2024 22:08:21 +0200 Subject: [PATCH 2/2] Update config.yml --- airflow/config_templates/config.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/airflow/config_templates/config.yml b/airflow/config_templates/config.yml index 3649e2183c204..1cd39166ba084 100644 --- a/airflow/config_templates/config.yml +++ b/airflow/config_templates/config.yml @@ -1688,8 +1688,8 @@ webserver: When using ``gevent`` you might also want to set the ``_AIRFLOW_PATCH_GEVENT`` environment variable to ``"1"`` to make sure gevent patching is done as early as possible. - Be careful to set ``_AIRFLOW_PATCH_GEVENT`` only on webserver as gevent patching may - affect the scheduler behavior via the ``multiprocessing`` sockets module. + Be careful to set ``_AIRFLOW_PATCH_GEVENT`` only on the web server as gevent patching may + affect the scheduler behavior via the ``multiprocessing`` sockets module and cause crash. See related Issues / PRs for more details: