File tree Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -545,12 +545,16 @@ command with the ``--all`` option:
545
545
546
546
The ``--keepalive `` option can be used to prevent messages from being prematurely
547
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.
548
+ and prevents it from being redelivered until the worker finishes processing it:
549
+
550
+ .. code-block :: terminal
551
+
552
+ php bin/console messenger:consume --keepalive=5
549
553
550
554
.. note ::
551
555
552
556
This option is only available for supported transports, which are
553
- the Beanstalkd and AmazonSQS transports.
557
+ the Doctrine, Beanstalkd and AmazonSQS transports.
554
558
555
559
.. versionadded :: 7.2
556
560
@@ -1689,6 +1693,14 @@ in the table.
1689
1693
The length of time to wait for a response when calling
1690
1694
``PDO::pgsqlGetNotify ``, in milliseconds.
1691
1695
1696
+ The keepalive feature, which prevents messages from being prematurely redelivered during
1697
+ long-running processing, updates the ``delivered_at `` timestamp periodically to ensure
1698
+ the message is marked as "in progress".
1699
+
1700
+ .. versionadded :: 7.3
1701
+
1702
+ Keepalive support, using the ``--keepalive `` option, was added in Symfony 7.3.
1703
+
1692
1704
Beanstalkd Transport
1693
1705
~~~~~~~~~~~~~~~~~~~~
1694
1706
You can’t perform that action at this time.
0 commit comments