From bdca4e901550d29fd3ec5c38adb02365459b1460 Mon Sep 17 00:00:00 2001 From: Arnaud De Abreu Date: Mon, 24 Mar 2025 09:25:46 +0100 Subject: [PATCH] [Messenger] Add `--class-filter` option to the `messenger:failed:remove` command --- messenger.rst | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/messenger.rst b/messenger.rst index 6d1602f410c..8632ebdb4e0 100644 --- a/messenger.rst +++ b/messenger.rst @@ -1312,6 +1312,9 @@ to retry them: # remove all messages in the failure transport $ php bin/console messenger:failed:remove --all + # remove only MyClass messages + $ php bin/console messenger:failed:remove --class-filter='MyClass' + If the message fails again, it will be re-sent back to the failure transport due to the normal :ref:`retry rules `. Once the max retry has been hit, the message will be discarded permanently. @@ -1321,6 +1324,11 @@ retry has been hit, the message will be discarded permanently. The option to skip a message in the ``messenger:failed:retry`` command was introduced in Symfony 7.2 +.. versionadded:: 7.3 + + The option to filter by a message class in the ``messenger:failed:remove`` command was + introduced in Symfony 7.3 + Multiple Failed Transports ~~~~~~~~~~~~~~~~~~~~~~~~~~