Skip to main content

read_state

Function read_state 

Source
pub fn read_state(store: &CloudStore) -> WorkerState
Expand description

The local state as stored (today’s counters reset on a new day). Fail closed: a file that cannot be read or parsed counts as paused, and so does a missing one on an engine enrolled with Cloud — deleting it never lifts a pause or resets today’s counts. Only enrollment (prepare_enrollment) and cloud worker resume, both of which the person runs (an agent shell refuses them), write it unpaused.