Queue should have timeout option on get

Bug #589413 reported by Kapil Thangavelu
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
txzookeeper
New
Undecided
Unassigned

Bug Description

The distributed queue should be able to specify a timeout when fetching items from the queue. This should correctly errback on the get deferred, and should stop any in progress attempt to get a node from the queue node.

Revision history for this message
Alex Parenteau (aubonbeurre) wrote :

I agree somewhat, but I observed in our project that we would instead prefer to have a deferred that one can trigger to cancel the queue.get() (and therefore cancel the watcher).

This would require to use something like:

defer.DeferredList((watch_children, stop_get), fireOnOneCallback=True, fireOnOneErrback=True)

So one could stop the get call by issuing:

queue.stop_get.errback(Failure(QueueStopGet("Quit")))

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.