The Python Oracle

Python Kombu consumer not notified of rabbitmq message (queue.get does work)

--------------------------------------------------
Hire the world's top talent on demand or became one of them at Toptal: https://topt.al/25cXVn
and get $2,000 discount on your first invoice
--------------------------------------------------

Music by Eric Matyas
https://www.soundimage.org
Track title: City Beneath the Waves Looping

--

Chapters
00:00 Python Kombu Consumer Not Notified Of Rabbitmq Message (Queue.Get Does Work)
01:13 Accepted Answer Score 5
01:22 Thank you

--

Full question
https://stackoverflow.com/questions/5236...

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#python #rabbitmq #amqp

#avk47



ACCEPTED ANSWER

Score 5


Turns out its a simple error. Adding

connection.drain_events()

to the while loop causes messages to arrive.