[Twisted-Python] Scheduling tasks in twisted

Stéphane Brault stephane_brault at yahoo.fr
Tue Jun 27 13:34:07 EDT 2006

Thanks Jean-Paul,
 I think I'll try to write my own service, getting inspiration from the TimerService.

----- Message d'origine ----
De : Jean-Paul Calderone <exarkun at divmod.com>
À : twisted-python at twistedmatrix.com
Envoyé le : Mardi, 27 Juin 2006, 7h04mn 32s
Objet : Re: [Twisted-Python] Scheduling tasks in twisted

On Tue, 27 Jun 2006 16:49:12 +0000 (GMT), Stéphane Brault <stephane_brault at yahoo.fr> wrote:
> I'm developping servers which communicate with webservices. I need to have
> looping tasks making calls every x (x depends on the task). My communication
> code works well but I'm not sure how to add scheduled tasks. Do I have to add
> a scheduler service, if so how should i go ? Or is there another way ?

Whether or not you use a service depends on the structure of your application.
If you don't use a twisted.application.internet.TimerService, you can use a
twisted.internet.task.LoopingCall directly.


Twisted-Python mailing list
Twisted-Python at twistedmatrix.com

More information about the Twisted-Python mailing list