Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork5.3k
[Messenger] Document the--exclude-receivers option formessenger:consume command#21165
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
javiereguiluz merged 1 commit intosymfony:7.4fromOskarStark:document-messenger-exclude-receiversSep 2, 2025
Merged
[Messenger] Document the--exclude-receivers option formessenger:consume command#21165
javiereguiluz merged 1 commit intosymfony:7.4fromOskarStark:document-messenger-exclude-receiversSep 2, 2025
Uh oh!
There was an error while loading.Please reload this page.
Conversation
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
a231811 toc0c553cCompare--exclude-receivers option formessenger:consume command--exclude-receivers option formessenger:consume command--exclude-receivers option formessenger:consume commandUh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
fabpot added a commit to symfony/symfony that referenced this pull requestAug 23, 2025
…nsume` command (jbdelhommeau)This PR was merged into the 7.4 branch.Discussion----------[Messenger] Add `--exclude-receivers` to `messenger:consume` command| Q | A| ------------- | ---| Branch? | 7.4| Bug fix? | no| New feature? | yes| Deprecations? | no| Docs |symfony/symfony-docs#21165| License | MITThis PR adds a new `--exclude-receivers` (shortcut `-et`) option to the `messenger:consume` command. This option allows users to exclude specific transports/receivers from being consumed when using the `--all` flag.**What it does and why it's needed:**- When running `messenger:consume --all`, you may want to skip certain transports (example the failed transports) without having to list all the others manually. The new `--exclude-receivers` option makes this possible.- This improves flexibility and usability for complex Messenger setups.**How it works:**```bashphp bin/console messenger:consume --all --exclude-receivers=queues1 --exclude-receivers=queues2```This will consume messages from all transports except `queues1` and `queues2`.**Behavior:**- The `--exclude-queues` option can only be used with `--all`. If used without `--all`, an `InvalidOptionException` is thrown.- If all queues are excluded, a `RuntimeException` is thrown to prevent running the command with no receivers.**Before:**- No way to exclude specific receivers when using `--all`.**After:**- You can now exclude queues with `--exclude-receivers` when using `--all`.**Tests:**- Unit tests have been added to cover the new option, its validation, and edge cases.Commits-------9d9a9d8 chore: add exclude-receivers consume parameters
17c1dae tod252713Compareae5898d intosymfony:7.4 3 checks passed
Uh oh!
There was an error while loading.Please reload this page.
Member
javiereguiluz commentedSep 2, 2025
Thanks Oskar. Merged! |
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
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.
Uh oh!
There was an error while loading.Please reload this page.
--exclude-receiversoption--allflag--alloptionCode PR
--exclude-receiverstomessenger:consumecommand symfony#60979