Package turbogears :: Module scheduler :: Class Scheduler
[hide private]

Class Scheduler

source code


The Scheduler itself.

Instance Methods [hide private]
 
__init__(self) source code
 
__delayfunc(self, delay) source code
 
_acquire_lock(self) source code
 
_release_lock(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
 
_run(self) source code
Method Details [hide private]

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.