@@ -543,14 +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:
551+
552+ .. code-block :: terminal
553+
554+ $ php bin/console messenger:consume --keepalive
549555
550556 .. note ::
551557
552- This option is only available for supported transports, which are
553- the Beanstalkd and AmazonSQS transports.
558+ This option is only available for the following transports: Beanstalkd and AmazonSQS.
554559
555560.. versionadded :: 7.2
556561
@@ -1724,10 +1729,6 @@ The transport has a number of options:
17241729 The message time to run before it is put back in the ready queue - in
17251730 seconds.
17261731
1727- .. versionadded :: 7.2
1728-
1729- Keepalive support, using the ``--keepalive `` option, was added in Symfony 7.2.
1730-
17311732.. _messenger-redis-transport :
17321733
17331734Redis Transport
@@ -2050,10 +2051,6 @@ The transport has a number of options:
20502051 FIFO queues don't support setting a delay per message, a value of ``delay: 0 ``
20512052 is required in the retry strategy settings.
20522053
2053- .. versionadded :: 7.2
2054-
2055- Keepalive support, using the `--keepalive ` option, was added in Symfony 7.2.
2056-
20572054Serializing Messages
20582055~~~~~~~~~~~~~~~~~~~~
20592056
0 commit comments