[Twisted-Python] newbie: scheduling/queuing tasks with xmlrpc
andy at thecablelounge.com
Thu Mar 17 20:15:49 EST 2005
Jp Calderone wrote:
> The called and paused Deferred attributes are not really public. You should avoid using them if at all possible (and it almost always is). Likewise, the pause() and unpause() methods are more for the convenience of Deferred's implementation and you should never need to call them.
Thinking over the recent deferred timeout thread:
it looks like methods like pause, unpause, cancel and timeout should all
be handled by the source of the operation. A common operation (job) api
that exposed these methods would make building generic scheduling
Dustin I don't know if you'd find this thread of interest:
The problem with the DeferredPriorityQueue there for your case is if
enough hour long jobs come to use up all available tokens, the server
would be clogged up until they finish. If the queue took jobs with an
agreed on way of pausing them, long running jobs low priority jobs could
be put on hold when higher priority jobs turn up ..
More information about the Twisted-Python