The Python Oracle

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

Become part of the top 3% of the developers by applying to Toptal https://topt.al/25cXVn

--

Music by Eric Matyas
https://www.soundimage.org
Track title: Flying Over Ancient Lands

--

Chapters
00:00 Question
01:49 Accepted answer (Score 5)
02:07 Thank you

--

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

Question links:
[consumer]: http://readthedocs.org/docs/kombu/en/lat...

--

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.