@@ -543,14 +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:
551
+
552
+ .. code-block :: terminal
553
+
554
+ $ php bin/console messenger:consume --keepalive
549
555
550
556
.. note ::
551
557
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.
554
559
555
560
.. versionadded :: 7.2
556
561
@@ -1724,10 +1729,6 @@ The transport has a number of options:
1724
1729
The message time to run before it is put back in the ready queue - in
1725
1730
seconds.
1726
1731
1727
- .. versionadded :: 7.2
1728
-
1729
- Keepalive support, using the ``--keepalive `` option, was added in Symfony 7.2.
1730
-
1731
1732
.. _messenger-redis-transport :
1732
1733
1733
1734
Redis Transport
@@ -2050,10 +2051,6 @@ The transport has a number of options:
2050
2051
FIFO queues don't support setting a delay per message, a value of ``delay: 0 ``
2051
2052
is required in the retry strategy settings.
2052
2053
2053
- .. versionadded :: 7.2
2054
-
2055
- Keepalive support, using the `--keepalive ` option, was added in Symfony 7.2.
2056
-
2057
2054
Serializing Messages
2058
2055
~~~~~~~~~~~~~~~~~~~~
2059
2056
0 commit comments