Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[Messenger] Add new messenger: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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 1, 2022

Conversation

ktherage
Copy link
Contributor

@ktherage ktherage commented Jun 3, 2022

Q A
Branch? 6.2
Bug fix? no
New feature? yes
Deprecations? no
Tickets
License MIT
Doc PR Todo

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-transport command it takes in input all configured transports' receivers and Only if they implement Symfony\Component\Messenger\Transport\Receiver\MessageCountAwareInterface it 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\MessageCountAwareInterface

A small demo ?

2022-06-03-12-50-58.mp4

@carsonbot
Copy link

Hey!

I think @monteiro has recently worked with this code. Maybe they can help review this?

Cheers!

Carsonbot

@ogizanagi ogizanagi force-pushed the messenger-message-count-command branch from cb724f9 to b56e311 Compare June 20, 2022 08:15
@ktherage ktherage force-pushed the messenger-message-count-command branch from b56e311 to 60293b7 Compare June 29, 2022 13:17
…ransports with their "to be processed" message count.
@fabpot fabpot force-pushed the messenger-message-count-command branch from 91caa27 to e5433cd Compare August 1, 2022 11:14
@fabpot
Copy link
Member

fabpot commented Aug 1, 2022

Thank you @ktherage.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants