From eabc51dc45f9d47f39b864f6c5e43282d21dc81a Mon Sep 17 00:00:00 2001 From: Silas Joisten Date: Sun, 26 Jan 2025 21:13:37 +0200 Subject: [PATCH 1/3] Update docs for messanger keepalive --- messenger.rst | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/messenger.rst b/messenger.rst index 0965cbc9170..2bafad4d376 100644 --- a/messenger.rst +++ b/messenger.rst @@ -1654,7 +1654,19 @@ The transport has a number of options: Set ``redeliver_timeout`` to a greater value than your slowest message duration. Otherwise, some messages will start a second time while the - first one is still being handled. + first one is still being handled. + + .. versionadded:: 7.3 + + The Doctrine transport now supports the **keepalive** feature, which prevents + messages from being prematurely redelivered during long-running processing. + This updates the ``delivered_at`` timestamp periodically to ensure the message + is marked as "in progress." Use the ``--keepalive`` option with Messenger commands + to enable this: + + .. code-block:: terminal + + bin/console messenger:consume --keepalive=5 ``auto_setup`` Whether the table should be created automatically during send / get. From 44d44cb39393c12d9bb2a5d6d4e885b5c60366d0 Mon Sep 17 00:00:00 2001 From: Silas Joisten Date: Sun, 26 Jan 2025 21:16:51 +0200 Subject: [PATCH 2/3] Update messenger.rst --- messenger.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/messenger.rst b/messenger.rst index 2bafad4d376..091878449b6 100644 --- a/messenger.rst +++ b/messenger.rst @@ -1654,7 +1654,7 @@ The transport has a number of options: Set ``redeliver_timeout`` to a greater value than your slowest message duration. Otherwise, some messages will start a second time while the - first one is still being handled. + first one is still being handled. .. versionadded:: 7.3 From 804ddf94e1ddbd22fc4b5dea0e42d2049895b4ac Mon Sep 17 00:00:00 2001 From: Silas Joisten Date: Sun, 26 Jan 2025 21:17:05 +0200 Subject: [PATCH 3/3] Update messenger.rst --- messenger.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/messenger.rst b/messenger.rst index 091878449b6..2f24ac2c738 100644 --- a/messenger.rst +++ b/messenger.rst @@ -1666,7 +1666,7 @@ The transport has a number of options: .. code-block:: terminal - bin/console messenger:consume --keepalive=5 + php bin/console messenger:consume --keepalive=5 ``auto_setup`` Whether the table should be created automatically during send / get.