I d like to make sure that my message was delivered to a queue.
To do so I m adding the mandatory param to the basic_publish.
What else should I do to receive the basic.return
message if my message wasn t successfully delivered?
I can t use channel.wait()
to listen for the basic.return
because when my message is successfully delivered the wait()
function hangs forever. (There is no timeout)
On the other hand. When I don t call channel.wait()
the channel.returned_messages
will remain empty, even if the message isn t delivered.
I use py-amqplib
version 0.6.
Any solution is welcome.