Closed okomestudio closed 11 years ago
Here's the bug:
client.basic_cancel(consume_promise)
client.wait(consume_promise)
It should be:
promise = client.basic_cancel(consume_promise)
client.wait(promise)
Oh, I see. That makes sense, haha... The code snippets are copied directly from Basic Examples, "Synchronously receive three messages" in http://majek.github.io/puka/puka.html. The document probably should be updated there. Thanks!
Should be better now :) Thanks.
I'm using the examples on synchronous send/receive in Basic Examples on this page: http://majek.github.io/puka/puka.html.
Call this receive.py:
and synchronous send (send.py):
The synchronous receive appears to always fail with an AttributeError on waiting for basic_cancel in receive.py, when it does basic_ack on the very last message in the queue and then does basic_cancel on the same consume_promise:
This only happens on the very last message in the queue.
Is this an intended behavior? If it is, how should I cancel the consume more gracefully at the very end?
Thanks.