Skip to content
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

Message Re-queue and get the number of messages in queue #23

Open
Tekrajs opened this issue May 15, 2021 · 0 comments
Open

Message Re-queue and get the number of messages in queue #23

Tekrajs opened this issue May 15, 2021 · 0 comments

Comments

@Tekrajs
Copy link

Tekrajs commented May 15, 2021

Hi, I was trying to re-queue message at certain conditions. As you described in doc, I tried by responding false but it did,t work.
I wanted to try what you have proposed in https://github.com/mimiz/rabbitmq-event-manager/issues/18 issue, but i couldn't exactly implement it.

could you please try showing us how to achieve Re-queue as you suggested.

Also, the current amqp library allows to get count of the messages in the queue as follows.

var connection = require("amqp").createConnection(); connection.exchange("exampleExchange", {/*...*/}, function(exchange) { connection.queue("exampleQueue", {/*...*/}, function(queue, messageCount, consumerCount){ console.log("Message count", messageCount); console.log("Consumer count", consumerCount); }); });

How can we achieve that in this library ?

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

No branches or pull requests

1 participant