-
Notifications
You must be signed in to change notification settings - Fork 23
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
Queue message Count #41
Comments
At this moment no there is not a way to get queue count, I am not sure that is possible with amqplib currently. The underlying tech is ampqlip https://amqp-node.github.io/amqplib/channel_api.html so if you are interested in adding that functionality to this package please open a PR |
I think https://amqp-node.github.io/amqplib/channel_api.html#channel_checkQueue Gives the info, but unsure of the implications perf wise. For those interested I currently make an http management call to get the info. |
@chris-cynation interesting. Would you be willing to give an example of that request here for others can do something in the interim? |
Here's how I do it: response.messages has the message count. |
Do you still desire this? Others? @chris-cynation are you willing to open a PR for this? |
Hi, |
I'm not closing this as I think it is useful, as clearly you opened this as it would be useful in your scenario. @chris-cynation if you feel things are not problematic how you are currently handling things though maybe keep doing as your doing. Its been awhile and no one else has responded. I also have limited time, as much as I would like to dedicate here. This is more of a passion project for me |
Is there a way to get the current queue message count?
Looking to periodically check to reduce back pressure.
The text was updated successfully, but these errors were encountered: