Skip to content

Commit bdca4e9

Browse files
arnaud-deabreuOskarStark
authored andcommitted
[Messenger] Add --class-filter option to the messenger:failed:remove command
1 parent 26e69bd commit bdca4e9

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

messenger.rst

+8
Original file line numberDiff line numberDiff line change
@@ -1312,6 +1312,9 @@ to retry them:
13121312
# remove all messages in the failure transport
13131313
$ php bin/console messenger:failed:remove --all
13141314
1315+
# remove only MyClass messages
1316+
$ php bin/console messenger:failed:remove --class-filter='MyClass'
1317+
13151318
If the message fails again, it will be re-sent back to the failure transport
13161319
due to the normal :ref:`retry rules <messenger-retries-failures>`. Once the max
13171320
retry has been hit, the message will be discarded permanently.
@@ -1321,6 +1324,11 @@ retry has been hit, the message will be discarded permanently.
13211324
The option to skip a message in the ``messenger:failed:retry`` command was
13221325
introduced in Symfony 7.2
13231326

1327+
.. versionadded:: 7.3
1328+
1329+
The option to filter by a message class in the ``messenger:failed:remove`` command was
1330+
introduced in Symfony 7.3
1331+
13241332
Multiple Failed Transports
13251333
~~~~~~~~~~~~~~~~~~~~~~~~~~
13261334

0 commit comments

Comments
 (0)