Closed rhettg closed 13 years ago
Storing state probably needs to come after the dependency remodeling http://github.com/rhettg/Tron/issues#issue/10
After a chat with Andy (on where we should store state): use an option from the command line if not specified, use one from a config file [...] if not there, then default to the value of TMPDIR if TMPDIR is not set, then try /tmp if the target dir is unwritable, fail immediately
Done. May need tweaking due to other issues.
Current, tron just keeps state in memory, but if it dies, it loses all record of jobs run or scheduled.
Let's create a journal that can be replayed to restore the state, specifically the state of jobs and their runs.
Ideally, this journal would be truncatable at some pont.