@@ -555,7 +555,7 @@ the message from being redelivered until the worker completes processing it:
555
555
556
556
.. note ::
557
557
558
- This option is only available for the following transports: Beanstalkd and AmazonSQS .
558
+ This option is only available for the following transports: Beanstalkd, AmazonSQS, Doctrine and Redis .
559
559
560
560
.. versionadded :: 7.2
561
561
@@ -1745,13 +1745,12 @@ in the table.
1745
1745
The length of time to wait for a response when calling
1746
1746
``PDO::pgsqlGetNotify ``, in milliseconds.
1747
1747
1748
- The keepalive feature, which prevents messages from being prematurely redelivered during
1749
- long-running processing, updates the ``delivered_at `` timestamp periodically to ensure
1750
- the message is marked as "in progress".
1748
+ The Doctrine transport supports the ``--keepalive `` option by periodically updating
1749
+ the ``delivered_at `` timestamp to prevent the message from being redelivered.
1751
1750
1752
1751
.. versionadded :: 7.3
1753
1752
1754
- Keepalive support, using the `` --keepalive `` option, was introduced in Symfony 7.3.
1753
+ Keepalive support was introduced in Symfony 7.3.
1755
1754
1756
1755
Beanstalkd Transport
1757
1756
~~~~~~~~~~~~~~~~~~~~
@@ -1802,7 +1801,7 @@ The Beanstalkd transport supports the ``--keepalive`` option by using Beanstalkd
1802
1801
Keepalive support was introduced in Symfony 7.2.
1803
1802
1804
1803
The Beanstalkd transport lets you set the priority of the messages being dispatched.
1805
- Use the :class: ``Symfony\\ Component\\ Messenger\\ Bridge\\ Beanstalkd\\ Transport\ \ BeanstalkdPriorityStamp` `
1804
+ Use the :class: ``Symfony\C omponent\M essenger\B ridge\B eanstalkd\T ransport\B eanstalkdPriorityStamp` `
1806
1805
and pass a number to specify the priority (default = ``1024 ``; lower numbers mean higher priority)::
1807
1806
1808
1807
use App\Message\SomeMessage;
@@ -1951,6 +1950,13 @@ under the transport in ``messenger.yaml``:
1951
1950
in your case) to avoid memory leaks. Otherwise, all messages will remain
1952
1951
forever in Redis.
1953
1952
1953
+ The Redis transport supports the ``--keepalive `` option by using Redis's ``XCLAIM ``
1954
+ command to periodically reset the message's idle time to zero.
1955
+
1956
+ .. versionadded :: 7.3
1957
+
1958
+ Keepalive support was introduced in Symfony 7.3.
1959
+
1954
1960
In Memory Transport
1955
1961
~~~~~~~~~~~~~~~~~~~
1956
1962
0 commit comments