You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "arkadiuszbach (via GitHub)" <gi...@apache.org> on 2026/07/01 08:52:51 UTC

Re: [PR] Warm-shutdown supervisor on SIGTERM instead of killing the running task [airflow]

arkadiuszbach commented on code in PR #69034:
URL: https://github.com/apache/airflow/pull/69034#discussion_r3504515213


##########
chart/files/pod-template-file.kubernetes-helm-yaml:
##########
@@ -106,6 +106,15 @@ spec:
       env:
         - name: AIRFLOW__CORE__EXECUTOR
           value: {{ .Values.executor | quote }}
+        # Deliver pod-termination signals only to the task supervisor (dumb-init's
+        # direct child), not to the whole process group. This lets a running task
+        # finish on graceful pod shutdown -- the same warm-shutdown mechanism Celery
+        # workers use -- instead of being killed by dumb-init's group-wide broadcast,
+        # and removes the boot-time race where a SIGTERM could reach the task before
+        # its handler is installed. Hard kills (heartbeat loss / overtime / the
+        # post-grace SIGKILL) are unaffected.
+        - name: DUMB_INIT_SETSID
+          value: "0"

Review Comment:
   Added `chart/newsframgnets`



-- 
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: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org