Home | Trees | Indices | Help |
|
---|
|
Module that provides a cron-like task scheduler.
Functions | |||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
Function Details |
Add a task to the scheduler based on a cron-like syntax.
|
Add an interval task to the scheduler. Pass in initialdelay with a number of seconds to wait before running and an interval with the number of seconds between runs. For example, an initialdelay of 600 and interval of 60 would mean "start running after 10 minutes and run every 1 minute after that".
|
Add a monthly task to the scheduler. Runs on certain days of the month. Pass in a list or tuple of monthdays from 1-31, import and also pass in timeonday which is an (hour, minute) tuple of the time of day to run the task. @param monthdays: list ot tuple of monthdays to execute action @param timeonday: tuple (hour, minute), to run on monthday @param action: The callable that will be called at the time you request @param args: Tuple of positional parameters to pass to the action @param kw: Keyword arguments to pass to the action @param taskname: Tasks can have a name (stored in task.name), which can help if you're trying to keep track of many tasks. @param precessmethod: By default, each task will be run in a new thread. You can also pass in turbogears.scheduler.method.sequential or turbogears.scheduler.method.forked. |
Add a monthly task to the scheduler. Runs on certain days of the month. Pass in a list or tuple of monthdays from 1-31, import and also pass in timeonday which is an (hour, minute) tuple of the time of day to run the task. @param monthdays: list ot tuple of monthdays to execute action @param timeonday: tuple (hour, minute), to run on monthday @param action: The callable that will be called at the time you request @param args: Tuple of positional parameters to pass to the action @param kw: Keyword arguments to pass to the action @param taskname: Tasks can have a name (stored in task.name), which can help if you're trying to keep track of many tasks. @param precessmethod: By default, each task will be run in a new thread. You can also pass in turbogears.scheduler.method.sequential or turbogears.scheduler.method.forked. |
Add a single task to the scheduler. Runs a task once. Pass in ``initialdelay`` with a number of seconds to wait before running.
|
Add a weekday task to the scheduler. Runs on certain days of the week. Pass in a list or tuple of weekdays from 1-7 (where 1 is Monday). Additionally, you need to pass in timeonday which is the time of day to run. timeonday should be a tuple with (hour, minute).
|
Add a weekday task to the scheduler. Runs on certain days of the week. Pass in a list or tuple of weekdays from 1-7 (where 1 is Monday). Additionally, you need to pass in timeonday which is the time of day to run. timeonday should be a tuple with (hour, minute).
|
Cancel task by task name.
|
Retrieve a task from the scheduler by task name.
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Fri Jul 19 17:20:01 2019 | http://epydoc.sourceforge.net |