C
C#16mo ago
Ola

Background service to consume a rabbitmq queue, messages unacked

I have a background worker which listens to a rabbitmq queue for email sending. The messages are added to the queue by an api. The full code of the service is available at : https://pastebin.com/nArbQd2g (I also have a similar service to process data for firebase notifications) When I push some messages into my local queue and run the service connected to the local queue, the mails are sent, so everything works on my local computer. But when I switch to the remote queue (a free instance on cloudamqp), the messages are still pushed to the queue but when I run the service on my computer, the Received event is never triggered and in he dashboard, I have noticed that the messages were ready but have been unacked (you can see it in the attachment). I have removed the second service that is listenning to the same host but I have the same issue
Pastebin
worker - Pastebin.com
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
2 Replies
Unknown User
Unknown User16mo ago
Message Not Public
Sign In & Join Server To View
Ola
OlaOP16mo ago
Thanks but I have the same result The messages are ready for a moment but they all get unacked I had this issue because I forgot to add DispatchConsumersAsync = true in the Connection Factory initializer
Want results from more Discord servers?
Add your server