@@ -543,18 +543,19 @@ command with the ``--all`` option:
543
543
544
544
The ``--all `` option was introduced in Symfony 7.1.
545
545
546
- The ``--keepalive `` option can be used to prevent messages from being prematurely
547
- redelivered during long-running processing. It marks the message as "in progress"
548
- and prevents it from being redelivered until the worker finishes processing it:
546
+ Messages that take a long time to process may be redelivered prematurely because
547
+ some transports assume that an unacknowledged message is lost. To prevent this
548
+ issue, use the ``--keepalive `` command option to specify an interval (in seconds;
549
+ default value = ``5 ``) at which the message is marked as "in progress". This prevents
550
+ the message from being redelivered until the worker completes processing it:
549
551
550
552
.. code-block :: terminal
551
553
552
- php bin/console messenger:consume --keepalive=5
554
+ $ php bin/console messenger:consume --keepalive
553
555
554
556
.. note ::
555
557
556
- This option is only available for supported transports, which are
557
- the Doctrine, Beanstalkd and AmazonSQS transports.
558
+ This option is only available for the following transports: Beanstalkd and AmazonSQS.
558
559
559
560
.. versionadded :: 7.2
560
561
@@ -1785,10 +1786,6 @@ The transport has a number of options:
1785
1786
The message time to run before it is put back in the ready queue - in
1786
1787
seconds.
1787
1788
1788
- .. versionadded :: 7.2
1789
-
1790
- Keepalive support, using the ``--keepalive `` option, was added in Symfony 7.2.
1791
-
1792
1789
The Beanstalkd transport lets you set the priority of the messages being dispatched.
1793
1790
Use the ``Symfony\Component\Messenger\Bridge\Beanstalkd\Transport\BeanstalkdPriorityStamp ``
1794
1791
and pass a number to specify the priority (default = ``1024 ``; lower numbers mean higher priority)::
@@ -2138,10 +2135,6 @@ The transport has a number of options:
2138
2135
FIFO queues don't support setting a delay per message, a value of ``delay: 0 ``
2139
2136
is required in the retry strategy settings.
2140
2137
2141
- .. versionadded :: 7.2
2142
-
2143
- Keepalive support, using the `--keepalive ` option, was added in Symfony 7.2.
2144
-
2145
2138
Serializing Messages
2146
2139
~~~~~~~~~~~~~~~~~~~~
2147
2140
0 commit comments