@@ -543,18 +543,19 @@ command with the ``--all`` option:
543543
544544 The ``--all `` option was introduced in Symfony 7.1.
545545
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:
549551
550552.. code-block :: terminal
551553
552- php bin/console messenger:consume --keepalive=5
554+ $ php bin/console messenger:consume --keepalive
553555
554556 .. note ::
555557
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.
558559
559560.. versionadded :: 7.2
560561
@@ -1785,10 +1786,6 @@ The transport has a number of options:
17851786 The message time to run before it is put back in the ready queue - in
17861787 seconds.
17871788
1788- .. versionadded :: 7.2
1789-
1790- Keepalive support, using the ``--keepalive `` option, was added in Symfony 7.2.
1791-
17921789The Beanstalkd transport lets you set the priority of the messages being dispatched.
17931790Use the ``Symfony\Component\Messenger\Bridge\Beanstalkd\Transport\BeanstalkdPriorityStamp ``
17941791and 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:
21382135 FIFO queues don't support setting a delay per message, a value of ``delay: 0 ``
21392136 is required in the retry strategy settings.
21402137
2141- .. versionadded :: 7.2
2142-
2143- Keepalive support, using the `--keepalive ` option, was added in Symfony 7.2.
2144-
21452138Serializing Messages
21462139~~~~~~~~~~~~~~~~~~~~
21472140
0 commit comments