rhettg / Tron

Next generation batch process scheduling and management
Other
11 stars 0 forks source link

Tron needs to save state on restarts #1

Closed rhettg closed 13 years ago

rhettg commented 14 years ago

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.

mtytel commented 13 years ago

Storing state probably needs to come after the dependency remodeling http://github.com/rhettg/Tron/issues#issue/10

mtytel commented 13 years ago

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

mtytel commented 13 years ago

Done. May need tweaking due to other issues.