Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit bdca4e9

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

File tree

1 file changed

+8
-0
lines changed
Filter options

1 file changed

+8
-0
lines changed

‎messenger.rst

Copy file name to clipboardExpand all lines: 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.