From 4680580e28966b126a2a946f2dcf0921c8e89395 Mon Sep 17 00:00:00 2001 From: Pierre Penelon Date: Fri, 12 Jul 2024 13:47:50 +0200 Subject: [PATCH] Documentation: Warning for _AIRFLOW_PATCH_GEVENT (#40677) --- 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..1cd39166ba084 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 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: * https://github.com/benoitc/gunicorn/issues/2796