Saves and loads run states. Subclasses implement both methods.
-
has(run_id)[source]
Whether a state of run_id is kept.
- Parameters:
run_id (str)
- Return type:
bool
-
load(run_id)[source]
Return the latest state of run_id; raise KeyError if none.
- Parameters:
run_id (str)
- Return type:
RunState
-
save(state)[source]
Keep state as the latest state of its run.
- Parameters:
state (RunState)
- Return type:
None