Skip to content

[Messenger] Add --all option to messenger:failed:remove #18950

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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 1, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions messenger.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1105,10 +1105,18 @@ to retry them:
# remove messages without retrying them and show each message before removing it
$ php bin/console messenger:failed:remove 20 30 --show-messages

# remove all messages in the failure transport
$ php bin/console messenger:failed:remove --all

.. versionadded:: 6.2

The ``--class-filter`` and ``--stats`` options were introduced in Symfony 6.2.

.. versionadded:: 6.4

The ``--all`` option was introduced in Symfony 6.4.


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.
Expand Down