[Twisted-Python] A resizable dispatch queue for Twisted (updated)

Luke Marsden luke-lists at hybrid-logic.co.uk
Tue Jun 28 05:51:17 EDT 2011


On Mon, 2011-06-27 at 17:27 +0200, Terry Jones wrote:
> I've made some changes to txRDQ, and just blogged about the class:
> http://bit.ly/lD5zIT
> 
> Summary of changes: A put on the queue now gets you a deferred. There's a
> new Job class that the deferred fires or errs with. The deferreds can be
> cancelled. Jobs can be given priorities and can be . On the admin side, the
> pending and underway methods return lists of job instances (which can be
> re-prioritized, canceled, and independently watched). Shutdown now allows
> you to cancel underway jobs.
> 
> The code also contains a DeferredPriorityQueue which will likely be
> independently of interest to some, and might make its way into Twisted?
> 
> Code at https://launchpad.net/txrdq
> 

Nice!  Thanks Terry, this looks really interesting, and may well replace
DeferredSemaphore in some parts of our code.

Cheers,
Luke

--
www.hybrid-cluster.com - Cloud web hosting platform




More information about the Twisted-Python mailing list