volkanncicek commented on code in PR #77648:
URL: https://github.com/apache/airflow/pull/77648#discussion_r4711953410
##########
airflow-core/src/airflow/config_templates/config.yml:
##########
@@ -91,6 +91,13 @@ core:
the pre-3.14 behaviour (note: forking a multi-threaded process is not
always safe), or keep
``forkserver`` and set ``[core] mp_forkserver_preload`` to recover
most of the sharing.
+ Under systemd, ``forkserver`` and ``spawn`` also rely on the named
semaphores they keep in
+ ``/dev/shm``. If the component runs as a regular (non-system) user,
``systemd-logind``
+ removes them as soon as that user's last login session ends
(``RemoveIPC=yes``, the
+ default), and no worker can be started after that: tasks stay queued
and the forkserver
+ logs ``FileNotFoundError``. Use ``fork``, run Airflow as a system
user, or set
+ ``RemoveIPC=no`` in ``logind.conf``.
Review Comment:
Thanks, good points. Updated: running as a system user is now the
recommended fix, `fork` is the fallback with a pointer to the caveat above, and
`RemoveIPC=no` is called out as a host-wide change, with a link to
`logind.conf(5)`.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]