On 10/12/06, percious <[EMAIL PROTECTED]> wrote: > > I have just begun to look at and work with the scheduler. Couple of > questions. > > What I am trying to do is set up a TG controller where-by the user can > set up monthly, weekly, daily, etc... tasks. > > Trying to figure out how the "identifier" works. Is there an effective > way of deleting a task from the queue? > with the 1.0 branch no, I commited some code to manage this to the trunk but never test it extensively and didn't wrote the docs so it's still on the trunk.
basically I extended the data structure so you can list, delete,etc. the schedule tasks. the code is well commented http://trac.turbogears.org/turbogears/browser/trunk/turbogears/scheduler.py > Also, it appears from the post I have read that the task is > UN-threaded. what post? that is not correct there are 3 types of "executors" > So if I have task A which takes 5 minutes scheduled for > 1:00 AM and Task B scheduled for 1:01AM Task A is garenteed to finish > before task B begins? > you can pass in the behavior it can be threaded (default), sequential or forked http://docs.turbogears.org/1.0/Scheduler and yes the docs on this are very thin. > Ok, so say I have all my tasks set up. Yippee! Bam. TG goes down. > Must I re-constitute all my previous tasks when TG starts back up? yes, I was thinking of implementing some kind of pickle that will do this "automatigally" but I couldn't think of a good way to do this on a per project basis. > Where is a good place to install tasks to run on startup for TG? > I suggest you do a script that loads them. I haven't think about this much because the app I was working on that needed this is stuck until I get time/mood to work on it but placing them on top of your controller class in controller.py will be one place since it will load with TG, other way will be to register it on turbogears.startup > TIA > -percious > > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

