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

Class TimedJob

source code

 object --+    
          |    
AbstractJob --+
              |
             TimedJob

A job that's run roughly daily at some wallclock (UTC) times.

times is a list of (day-of-month, day-of-week, hour, minute) tuples. day-of-month and/or day-of-week are 1-based and may be None (if both are non-none, day-of-week wins).

Instance Methods
 
__init__(self, times, 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, times, 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)