-
Notifications
You must be signed in to change notification settings - Fork 440
[amqp] Get message count #64
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
Comments
Yes sure. Just out of curiosity what is your usecase? Why do you need a number of messages and how do you use that? |
I'm limiting the amount of jobs a given user in my application can add to a queue at any one time. Thanks! Will add a PR soon. |
Im not understatnd, how i can get messages queue - i use symfony bundle. I try
where i can count messages ? |
topic (or in terms of rabbitmq -exchange) does not store messages |
error:
same error. For publish i just use constructor
then
ok i found
|
In
AMQPContext::declareQueue()
, calling$extQueue->declareQueue()
returns an integer which is the message count. But this isn't returned anywhere by the initial method.Is my only option to override this context with my own, and copy / paste the
declareQueue()
method code, adding a return for the call through toAMQP::declareQueue()
? Can I provide a PR? Or is there another way to get a message count from a queue? Thanks!The text was updated successfully, but these errors were encountered: