Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

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

Sign up
Appearance settings

[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

Conversation

@OskarStark
Copy link
Contributor

@OskarStarkOskarStark commentedJul 1, 2025
edited
Loading

  • Add documentation for the new--exclude-receivers option
  • Show usage example with--all flag
  • Include version annotation for Symfony 7.4
  • Add note about requirement to use with--all option

Code PR

@carsonbotcarsonbot added this to the7.4 milestoneJul 1, 2025
@OskarStarkOskarStarkforce-pushed thedocument-messenger-exclude-receivers branch froma231811 toc0c553cCompareJuly 1, 2025 08:07
@OskarStarkOskarStark changed the titleDocument the --exclude-receivers option for messenger:consume commandDocument the--exclude-receivers option formessenger:consume commandJul 1, 2025
@javiereguiluzjaviereguiluz added Waiting Code MergeDocs for features pending to be merged Messenger labelsJul 4, 2025
@carsonbotcarsonbot changed the titleDocument the--exclude-receivers option formessenger:consume command[Messenger] Document the--exclude-receivers option formessenger:consume commandJul 4, 2025
@carsonbotcarsonbot modified the milestones:7.4,nextJul 4, 2025
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
@javiereguiluzjaviereguiluz added Status: Reviewed and removed Status: Needs Review Waiting Code MergeDocs for features pending to be merged labelsSep 2, 2025
@javiereguiluzjaviereguiluzforce-pushed thedocument-messenger-exclude-receivers branch from17c1dae tod252713CompareSeptember 2, 2025 15:42
@javiereguiluzjaviereguiluz merged commitae5898d intosymfony:7.4Sep 2, 2025
3 checks passed
@javiereguiluz
Copy link
Member

Thanks Oskar. Merged!

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Projects

None yet

Milestone

next

Development

Successfully merging this pull request may close these issues.

3 participants

@OskarStark@javiereguiluz@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp