Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork5.2k
[Messenger] Add--class-filter
option to themessenger:failed:remove
command#20809
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Merged
OskarStark merged 1 commit intosymfony:7.3fromarnaud-deabreu:doc/20805-messenger-remove-by-class-filterMar 24, 2025
+8 −0
Merged
Changes fromall commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Jump to file
Failed to load files.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
8 changes: 8 additions & 0 deletionsmessenger.rst
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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' | ||
OskarStark marked this conversation as resolved. Show resolvedHide resolvedUh oh!There was an error while loading.Please reload this page. | ||
If the message fails again, it will be re-sent back to the failure transport | ||
due to the normal :ref:`retry rules <messenger-retries-failures>`. 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 | ||
~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.