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] 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

Merged

Conversation

@ktherage
Copy link
Contributor

@ktheragektherage commentedJun 3, 2022
edited
Loading

QA
Branch?6.2
Bug fix?no
New feature?yes
Deprecations?no
Tickets
LicenseMIT
Doc PRTodo

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 thesetup-transport command it takes in input all configured transports' receivers andOnly if they implementSymfony\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 implementSymfony\Component\Messenger\Transport\Receiver\MessageCountAwareInterface

A small demo ?

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

darthf1, smnandre, mmarton, OskarStark, alexislefebvre, akondas, mdoutreluingne, and javiereguiluz reacted with thumbs up emojirvanlaak reacted with heart emoji
@carsonbot
Copy link

Hey!

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

Cheers!

Carsonbot

@ogizanagiogizanagiforce-pushed themessenger-message-count-command branch fromcb724f9 tob56e311CompareJune 20, 2022 08:15
@ktheragektherageforce-pushed themessenger-message-count-command branch fromb56e311 to60293b7CompareJune 29, 2022 13:17
…ransports with their "to be processed" message count.
@fabpotfabpotforce-pushed themessenger-message-count-command branch from91caa27 toe5433cdCompareAugust 1, 2022 11:14
@fabpot
Copy link
Member

Thank you@ktherage.

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

Reviewers

@fabpotfabpotfabpot approved these changes

+1 more reviewer

@ogizanagiogizanagiogizanagi approved these changes

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Projects

None yet

Milestone

6.2

Development

Successfully merging this pull request may close these issues.

4 participants

@ktherage@carsonbot@fabpot@ogizanagi

[8]ページ先頭

©2009-2025 Movatter.jp