Skip to content

Commit 44d7f15

Browse files
committed
feature #20809 [Messenger] Add --class-filter option to the messenger:failed:remove command (arnaud-deabreu)
This PR was squashed before being merged into the 7.3 branch. Discussion ---------- [Messenger] Add `--class-filter` option to the `messenger:failed:remove` command | Q | A | ------------- | --- | Feature PR | symfony/symfony#59978 | PR author(s) | `@arnaud`-deabreu | Merged in | 7.3 | Doc issue | Fix #20805 The `--class-filter` was added in the `messenger:failed:remove` command in this [PR](symfony/symfony#59978). As the option already exists in the `messenger:failed:show` I'm wondering if only adding this example could be enough ? Commits ------- bdca4e9 [Messenger] Add `--class-filter` option to the `messenger:failed:remove` command
2 parents 16861e3 + bdca4e9 commit 44d7f15

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)