@@ -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
@@ -1713,10 +1718,6 @@ The Beanstalkd transport DSN may looks like this:
1713
1718
1714
1719
The transport has a number of options:
1715
1720
1716
- ``keepalive `` (default: none)
1717
- The amount of time, in seconds, the consumer can take to process the message
1718
- without considering it timed out.
1719
-
1720
1721
``tube_name `` (default: ``default ``)
1721
1722
Name of the queue
1722
1723
@@ -1728,10 +1729,6 @@ The transport has a number of options:
1728
1729
The message time to run before it is put back in the ready queue - in
1729
1730
seconds.
1730
1731
1731
- .. versionadded :: 7.2
1732
-
1733
- The ``keepalive `` option was introduced in Symfony 7.2.
1734
-
1735
1732
.. _messenger-redis-transport :
1736
1733
1737
1734
Redis Transport
@@ -2001,11 +1998,6 @@ The transport has a number of options:
2001
1998
``endpoint `` (default: ``https://sqs.eu-west-1.amazonaws.com ``)
2002
1999
Absolute URL to the SQS service
2003
2000
2004
- ``keepalive `` (default: none)
2005
- The minimum amount of time, in seconds, the message remains invisible to other
2006
- consumers so you can process it. It's useful to manage long-running tasks or
2007
- delay retries for a given message.
2008
-
2009
2001
``poll_timeout `` (default: ``0.1 ``)
2010
2002
Wait for new message duration in seconds
2011
2003
@@ -2027,10 +2019,6 @@ The transport has a number of options:
2027
2019
``wait_time `` (default: ``20 ``)
2028
2020
`Long polling `_ duration in seconds
2029
2021
2030
- .. versionadded :: 7.2
2031
-
2032
- The ``keepalive `` option was introduced in Symfony 7.2.
2033
-
2034
2022
.. note ::
2035
2023
2036
2024
The ``wait_time `` parameter defines the maximum duration Amazon SQS should
0 commit comments