10000 minor #20607 [Messenger] Update docs for keepalive support in doctrin… · symfony/symfony-docs@fb94df5 · GitHub
[go: up one dir, main page]

Skip to content

Commit fb94df5

Browse files
committed
minor #20607 [Messenger] Update docs for keepalive support in doctrine messenger transport (OskarStark)
This PR was merged into the 7.3 branch. Discussion ---------- [Messenger] Update docs for keepalive support in doctrine messenger transport Replaces * #20603 closes #20599 cc `@silasjoisten` Commits ------- 40cafd4 [Messenger] Update docs for keepalive support in doctrine messenger transport
2 parents c983e76 + 40cafd4 commit fb94df5

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

messenger.rst

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -545,12 +545,16 @@ command with the ``--all`` option:
545545

546546
The ``--keepalive`` option can be used to prevent messages from being prematurely
547547
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
549553
550554
.. note::
551555

552556
This option is only available for supported transports, which are
553-
the Beanstalkd and AmazonSQS transports.
557+
the Doctrine, Beanstalkd and AmazonSQS transports.
554558

555559
.. versionadded:: 7.2
556560

@@ -1689,6 +1693,14 @@ in the table.
16891693
The length of time to wait for a response when calling
16901694
``PDO::pgsqlGetNotify``, in milliseconds.
16911695

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+
16921704
Beanstalkd Transport
16931705
~~~~~~~~~~~~~~~~~~~~
16941706

0 commit comments

Comments
 (0)
0