File tree Expand file tree Collapse file tree 1 file changed +11
-13
lines changed Expand file tree Collapse file tree 1 file changed +11
-13
lines changed Original file line number Diff line number Diff line change @@ -656,21 +656,19 @@ See the `Supervisor docs`_ for more details.
656
656
Graceful Shutdown
657
657
~~~~~~~~~~~~~~~~~
658
658
659
- Workers can handle the ``SIGTERM `` POSIX signal to finish handling their
660
- current message before exiting, as long as the `PCNTL `_ extension is installed.
659
+ If you install the `PCNTL `_ PHP extension in your project, workers will handle
660
+ the ``SIGTERM `` POSIX signal to finish processing their current message before
661
+ exiting.
661
662
662
- .. tip ::
663
+ In some cases the ``SIGTERM `` signal is sent by Supervisor itself (e.g. stopping
664
+ a Docker container having Supervisor as its entrypoint). In these cases you
665
+ need to add a ``stopwaitsecs `` key to the program configuration (with a value
666
+ of the desired grace period in seconds) in order to perform a graceful shutdown:
667
+
668
+ .. code-block :: ini
663
669
664
- In some cases the ``SIGTERM `` signal is sent by Supervisor itself (e.g.
665
- stopping a Docker container having Supervisor as its entrypoint).
666
- In these cases you need to add a ``stopwaitsecs `` key to the program
667
- configuration (with a value of the desired grace period in seconds)
668
- in order to perform a graceful shutdown.
669
-
670
- .. code-block :: ini
671
-
672
- [program:x]
673
- stopwaitsecs =20
670
+ [program:x]
671
+ stopwaitsecs =20
674
672
675
673
.. _messenger-retries-failures :
676
674
You can’t perform that action at this time.
0 commit comments