Part of lp.services.twistedsupport.task View In Hierarchy
This is useful for systems where we need to poll a central server in order to find new work to do.
|Method||_clear_looping_call||Stop the looping call, and log about it.|
|Method||_poll||Poll for tasks, passing them to 'task_consumer'.|
Polls 'task_producer' every 'interval' seconds. 'task_producer'
returns either None if there's no work to do right now, or some
representation of the task which is passed to the 'task_consumer'
callable given to
start. 'task_producer' can also return a
|Parameters||interval||The length of time between polls in seconds.|
|task_producer||The polling mechanism. This is a nullary callable that can return a Deferred. See above for more details.|