From 7c70485deecc094e84dc36d99f4eb86fc1e8fff3 Mon Sep 17 00:00:00 2001 From: Javier Eguiluz Date: Mon, 24 Feb 2025 16:33:11 +0100 Subject: [PATCH] [Messenger] Fix some syntax issue --- messenger.rst | 23 ++++++++++------------- 1 file changed, 10 insertions(+), 13 deletions(-) diff --git a/messenger.rst b/messenger.rst index e4f4abf60eb..d76e2170c09 100644 --- a/messenger.rst +++ b/messenger.rst @@ -543,14 +543,19 @@ command with the ``--all`` option: The ``--all`` option was introduced in Symfony 7.1. -The ``--keepalive`` option can be used to prevent messages from being prematurely -redelivered during long-running processing. It marks the message as "in progress" -and prevents it from being redelivered until the worker finishes processing it. +Messages that take a long time to process may be redelivered prematurely because +some transports assume that an unacknowledged message is lost. To prevent this +issue, use the ``--keepalive`` command option to specify an interval (in seconds; +default value = ``5``) at which the message is marked as "in progress". This prevents +the message from being redelivered until the worker completes processing it: + +.. code-block:: terminal + + $ php bin/console messenger:consume --keepalive .. note:: - This option is only available for supported transports, which are - the Beanstalkd and AmazonSQS transports. + This option is only available for the following transports: Beanstalkd and AmazonSQS. .. versionadded:: 7.2 @@ -1724,10 +1729,6 @@ The transport has a number of options: The message time to run before it is put back in the ready queue - in seconds. -.. versionadded:: 7.2 - - Keepalive support, using the ``--keepalive`` option, was added in Symfony 7.2. - .. _messenger-redis-transport: Redis Transport @@ -2050,10 +2051,6 @@ The transport has a number of options: FIFO queues don't support setting a delay per message, a value of ``delay: 0`` is required in the retry strategy settings. -.. versionadded:: 7.2 - - Keepalive support, using the `--keepalive` option, was added in Symfony 7.2. - Serializing Messages ~~~~~~~~~~~~~~~~~~~~