Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.7k
[Messenger] Add newmessenger:count command that return a list of transports with their "to be processed" message count.#46571
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
Uh oh!
There was an error while loading.Please reload this page.
Conversation
carsonbot commentedJun 4, 2022
Hey! I think@monteiro has recently worked with this code. Maybe they can help review this? Cheers! Carsonbot |
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
cb724f9 tob56e311Compareb56e311 to60293b7CompareUh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
…ransports with their "to be processed" message count.
91caa27 toe5433cdCompareThank you@ktherage. |
Uh oh!
There was an error while loading.Please reload this page.
Why ?
I worked on a project that didn't had insights on how many messages were present in "queues" (because of some hosting quirks) and to have this information we've developed a command that aims to make it possible via the Symfony's console.
After a visio call with an ex-colleague on another Symfony project, it turns out that he was verry interested to have this command in Symfony.
I've also discused with@Jean-Beru that literraly pushed me too open that PR.
So here I am.
What does it does ?
This quite simple, like for the
setup-transportcommand it takes in input all configured transports' receivers andOnly if they implementSymfony\Component\Messenger\Transport\Receiver\MessageCountAwareInterfaceit gets the message count and prints it out in a pretty little table.Limitation
This command won't work if the configured transport's receiver does not implement
Symfony\Component\Messenger\Transport\Receiver\MessageCountAwareInterfaceA small demo ?
2022-06-03-12-50-58.mp4