-
-
Notifications
You must be signed in to change notification settings - Fork 9.5k
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
[Messenger] messenger:consume offers sync transports to consume from and then immediately throws an exception #51556
Comments
…(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 | Closes #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 #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`
…(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 | Closes #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/symfony#51556. I think this be can fixed properly in a dedicated PR because it requires to dig into MessengerPass I guess. Commits ------- ae454e0648 [Messenger] Add `--all` option to `messenger:consume`
Hey, thanks for your report! |
Yup. |
Hey, thanks for your report! |
Just a quick reminder to make a comment on this. If I don't hear anything I'll close this. |
AFAIK this wasn't fixed in other related PRs but was mentioned as a nice to have. |
Symfony version(s) affected
6.3.3
Description
When running
messenger:consume
without a transport, it asks to select which transport to consume from.But, if I select
default
(which is sync), it immediately throwsmaking this choice superfluous because the only possible selection is
async
.How to reproduce
See above.
Possible Solution
Filter out sync transports and, if only one item remains, consume that immediately.
Additional Context
I guess this could be considered an UX bug.
The text was updated successfully, but these errors were encountered: