turbogears :: scheduler :: Task :: Class Task

Class Task

source code

object --+
         |
        Task

Abstract base class of all scheduler tasks

Instance Methods
 
__init__(self, name, action, args, kw)
This is an abstract class.
source code
 
__call__(self, schedulerref)
Execute the task action in the scheduler's thread.
source code
 
reschedule(self, scheduler)
This method should be defined in one of the sub classes.
source code
 
execute(self)
Execute the actual task.
source code
 
handle_exception(self)
Handle any exception that occurred during task execution.
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties

Inherited from object: __class__

Method Details

__init__(self, name, action, args, kw)
(Constructor)

source code 

This is an abstract class.

Overrides: object.__init__