Skip to content

Commit 7506d1f

Browse files
author
Rokas Mikalkėnas
committed
Add messenger.stop_worker_on_signals option documentation
1 parent 1fcba0b commit 7506d1f

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)