Package gavo :: Package base :: Module cron :: Class IntervalJob
[frames] | no frames]

Class IntervalJob

source code

 object --+    
          |    
AbstractJob --+
              |
             IntervalJob

A job that's executed roughly every interval seconds.

interval can be negative, in which case the job is scheduled for (almost) immediate execution.

Instance Methods
 
__init__(self, interval, name, callable)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
getNextWakeupTime(self, curTime)
returns the UTC unix epoch seconds when this job is next supposed to run, starting from curTime.
source code

Inherited from AbstractJob: __str__, reportCronFailure, run

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

Class Variables

Inherited from AbstractJob: lastStarted

Properties

Inherited from object: __class__

Method Details

__init__(self, interval, name, callable)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

getNextWakeupTime(self, curTime)

source code 

returns the UTC unix epoch seconds when this job is next supposed to run, starting from curTime.

Overrides: AbstractJob.getNextWakeupTime
(inherited documentation)