SameerMesiah97 commented on code in PR #77648:
URL: https://github.com/apache/airflow/pull/77648#discussion_r4711900603


##########
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:
   1) Why not suggest running as system user with forking as a fallback?
   2) Could we link to the systemd documentation for RemoveIPC here? We could 
also clarify that clarifying that RemoveIPC=no is a system-wide configuration 
change that should not be taken lightly.
   
   Please refer to the paragraph above. Suggesting forking as the go-to 
solution sounds contradictory when we say this:
   
   `(note: forking a multi-threaded process is not always safe)...`
   



-- 
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]

Reply via email to