[Twisted-Python] Scheduling tasks in twisted

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


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

----- 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:
>Hi,
> 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.

Jean-Paul

_______________________________________________
Twisted-Python mailing list
Twisted-Python at twistedmatrix.com
http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python







More information about the Twisted-Python mailing list