I agree that recurring jobs are a common enough thing that it would be
nice to include a scheduler.

I've used Bob Brewer's Recur module recently. It's nice because of how
you specify recurrence ("5 minutes" means every 5 minutes!). Recur's
problem, though, is timed item gets its own thread. sched-based or
sched-like schedulers are good because they use just one thread for
maintaining the schedule. I'm having trouble with the link now, but
here's where Recur had been:
http://projects.amor.org/misc/wiki/Recur

I've also used a slightly extended version of Irmen de Jong's kronos
module. Kronos uses the sched module's code to maintain the list of
scheduled items and inherently supports tasks that are run in separate
threads *or* separate processes via fork. My extension makes it easy
to cancel a scheduled task. Kronos appears to no longer be on its
original site, but I have a copy and it's MIT-licensed. I'll send it
to you, Tim, off-list to see what you think.

Kevin

On 4/22/06, Tim Lesher <[EMAIL PROTECTED]> wrote:
>
> One thing that I really liked from the last web framework I used was
> its deferred-call scheduler. It works somewhat like Python's builtin
> "sched" module, but it's much more friendly for a long-running server
> like TurboGears (for example, once you start sched.run(), it's
> problematic to add or remove tasks, and sched doesn't seem to play
> well with multiple threads).
>
> After fighting with sched again, I looked over the Spyce scheduler,
> and it's well-factored and free of Spyce dependencies. Any objections
> to incorporating it (with modifications, if necessary)?
>
> Spyce is distributed under the APL, so we shouldn't run into any
> licensing issues.
>
> The scheduler source is at
> http://svn-hosting.com/svn/spyce/trunk/spyce/scheduler.py
>
> --
> Tim Lesher <[EMAIL PROTECTED]>
>
> >
>


--
Kevin Dangoor
TurboGears / Zesty News

email: [EMAIL PROTECTED]
company: http://www.BlazingThings.com
blog: http://www.BlueSkyOnMars.com

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/turbogears
-~----------~----~----~----~------~----~------~--~---

Reply via email to