[Twisted-Python] newbie: scheduling/queuing tasks with xmlrpc

Andrew Bennetts andrew-twisted at puzzling.org
Mon Mar 7 22:59:11 MST 2005


On Mon, Mar 07, 2005 at 10:21:14PM -0700, Dustin Lee wrote:
[...]
> 
> Basically the idea is that the server will receive a variety of
> requests to perform tasks.  Some of these will be very quick to do and
> some will take several minutes (perhaps up to an hour).  Some tasks
> must run alone and some can run in parallel with others.  Even just a
> simple FIFO type queuing would be fine to start.
> 
> Any pointers on how to proceed?

The DeferredQueue class in SVN might be a good starting point:

    http://svn.twistedmatrix.com/cvs/trunk/twisted/internet/defer.py?view=auto&rev=12970&root=Twisted

-Andrew.





More information about the Twisted-Python mailing list