Package turbogears :: Module scheduler :: Class Scheduler

Class Scheduler

source code

Known Subclasses:

The Scheduler itself.

Instance Methods
 
__init__(self) source code
 
add_interval_task(self, action, taskname, initialdelay, interval, processmethod, args, kw)
Add a new Interval Task to the schedule.
source code
 
add_daytime_task(self, action, taskname, weekdays, monthdays, timeonday, processmethod, args, kw)
Add a new Day Task (Weekday or Monthday) to the schedule.
source code
 
schedule_task(self, task, delay)
Low-level method to add a new task to the scheduler with the given delay (seconds).
source code
 
schedule_task_abs(self, task, abstime)
Low-level method to add a new task to the scheduler for the given absolute time value.
source code
 
start(self)
Start the scheduler.
source code
 
stop(self)
Remove all pending tasks and stop the Scheduler.
source code
 
cancel(self, task) source code
Method Details

add_interval_task(self, action, taskname, initialdelay, interval, processmethod, args, kw)

source code 

Add a new Interval Task to the schedule. A very short initialdelay or one of zero cannot be honored, you will see a slight delay before the task is first executed. This is because the scheduler needs to pick it up in its loop.