We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 314d1d0 + 7506d1f commit 3e7a9d8Copy full SHA for 3e7a9d8
messenger.rst
@@ -757,8 +757,12 @@ Graceful Shutdown
757
.................
758
759
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.
+the ``SIGTERM`` or ``SIGINT`` POSIX signals to finish processing their current
+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.
766
767
In some cases the ``SIGTERM`` signal is sent by Supervisor itself (e.g. stopping
768
a Docker container having Supervisor as its entrypoint). In these cases you
0 commit comments