Package Products :: Package ZenEvents :: Module Schedule :: Class Schedule |
[hide private]
[frames] | no frames]

# Class Schedule

source code

Instance Methods | [hide private]
__init__(self, options, dmd) start executing the schedule | source code
buildOptions(self, parser) Set options in a borrowed parser | source code
start(self) Start working the schedule | source code
configCycle(self) Basic event-driven config loop | source code
sync(self) Synch with the database | source code
getWindows(self) | source code
run(self) Re-read work list from the database | source code
makeWorkList(self, now, workList) Returns the list of tuples where 0 is the next time the window should run and the 1 index is the window itself. | source code
now(self) | source code
runEvents(self) Execute all the maintanance windows at the proper time | source code
callLater(self, seconds) | source code
executeMaintenanceWindow(self, mw, timestamp) | source code

Method Details | [hide private]

### makeWorkList(self, now, workList) | source code
Returns the list of tuples where 0 is the next time the window should run and the 1 index is the window itself. If there is no next run and the window has started this method ends the windows. This method is wrapped in a transact block because there is the chance that we could set the production state on devices if the "end" method is called. Decorators: `@transact`

### executeMaintenanceWindow(self, mw, timestamp) | source code
Decorators: `@transact`