Queue should have timeout option on get
Bug #589413 reported by
Kapil Thangavelu
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.
To post a comment you must log in.
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.DeferredL ist((watch_ children, stop_get), fireOnOneCallba ck=True, fireOnOneErrbac k=True)
So one could stop the get call by issuing:
queue.stop_ get.errback( Failure( QueueStopGet( "Quit") ))