-
Notifications
You must be signed in to change notification settings - Fork 143
undefined method `receive_status' for nil:NilClass (NoMethodError) during queue.status #94
Comments
By the way queue.status with a block feels like a really wierd way to get status. |
That documentation is not for 0.7.x but for 0.8.0.RCs. AMQP::Queue#status with a block has been around since day 1 of the gem (for 3 years now) so removing it is not an option. Also, despite many pseudo-synchronous features, amqp gem is fully async and the status operation itself is async. |
0.7.2 was out yesterday, please try it and reopen if necessary. The code looks very reasonable but 0.7.x and 0.6.x series have plenty of limitations. |
I just learned that
now installs 0.7.2 for some reason. Investigating… |
I still get that error with 0.7.2. I have to drop the .bind(exchange) in order to prevent another error. |
Yes, I am able to reproduce it on 0.7.x. I don't see any "other errors" but default exchange is automatically bound to all queues so there is no need to #bind. I have a solution, adding a test now. 0.7.3 will be out within an hour. |
0.7.3 is pushed to rubygems.org |
Works a charm ! Thanks for the very quick response. |
… even in pretty tricky pseudo-sync code cases
The following generates the error:
How am I supposed to correctly check queue status ? Thanks ! Is queue.status an EM event callback ?
The text was updated successfully, but these errors were encountered: