Skip to content

Commit 3e7a9d8

Browse files
committed
minor #18105 Add messenger.stop_worker_on_signals option documentation (rmikalkenas)
This PR was merged into the 6.3 branch. Discussion ---------- Add messenger.stop_worker_on_signals option documentation Fixes: #18100 Commits ------- 7506d1f Add messenger.stop_worker_on_signals option documentation
2 parents 314d1d0 + 7506d1f commit 3e7a9d8

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

messenger.rst

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -757,8 +757,12 @@ Graceful Shutdown
757757
.................
758758

759759
If you install the `PCNTL`_ PHP extension in your project, workers will handle
760-
the ``SIGTERM`` POSIX signal to finish processing their current message before
761-
terminating.
760+
the ``SIGTERM`` or ``SIGINT`` POSIX signals to finish processing their current
761+
message before terminating.
762+
763+
However, you might prefer to use different POSIX signals for graceful shutdown.
764+
You can override default ones by setting ``framework.messenger.stop_worker_on_signals``
765+
configuration option.
762766

763767
In some cases the ``SIGTERM`` signal is sent by Supervisor itself (e.g. stopping
764768
a Docker container having Supervisor as its entrypoint). In these cases you

0 commit comments

Comments
 (0)