racker/virgo — pull request #31 by gdusbabek (2012-02-24 21:00:09+00:00)
Title: B-15901 Scheduler

WIP

This is a rough idea of how the scheduler will keep track of check state for scheduling purposes.

* Scheduler will probably become StateScanner that feeds events into the [future] Scheduler.
* I decided to go with a line-oriented text file
* each check is 4 lines: 1) id, 2) storage path, 3) state, 4) next scheduled run.
* The entire text file needs to be rewritten when a check is rescheduled or its state changes.

The purpose of this PR is to get feedback before I go too far down the wrong path.