You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feature symfony#52411 [Messenger] Add --all option to messenger:consume (javaDeveloperKid)
This PR was squashed before being merged into the 7.1 branch.
Discussion
----------
[Messenger] Add `--all` option to `messenger:consume`
| Q | A
| ------------- | ---
| Branch? | 7.1
| Bug fix? | no
| New feature? | yes <!-- please update src/**/CHANGELOG.md files -->
| Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files -->
| Issues | Closessymfony#52364 <!-- prefix each issue number with "Fix #", no need to create an issue if none exists, explain below instead -->
| License | MIT
When implementing this feature the problem with sync transports came out so the `if` statement for this was needed. I can see someone reported this 2 months ago in symfony#51556. I think this be can fixed properly in a dedicated PR because it requires to dig into MessengerPass I guess.
Commits
-------
ae454e0 [Messenger] Add `--all` option to `messenger:consume`
@@ -83,6 +84,7 @@ protected function configure(): void
83
84
newInputOption('bus', 'b', InputOption::VALUE_REQUIRED, 'Name of the bus to which received messages should be dispatched (if not passed, bus is determined automatically)'),
84
85
newInputOption('queues', null, InputOption::VALUE_REQUIRED | InputOption::VALUE_IS_ARRAY, 'Limit receivers to only consume from the specified queues'),
85
86
newInputOption('no-reset', null, InputOption::VALUE_NONE, 'Do not reset container services after each message'),
87
+
newInputOption('all', null, InputOption::VALUE_NONE, 'Consume messages from all receivers'),
86
88
])
87
89
->setHelp(<<<'EOF'
88
90
The <info>%command.name%</info> command consumes messages and dispatches them to the message bus.
@@ -123,6 +125,10 @@ protected function configure(): void
123
125
Use the --no-reset option to prevent services resetting after each message (may lead to leaking services' state between messages):
0 commit comments