Skip to main content

current_work

Function current_work 

Source
pub fn current_work(home: &Path, now: Timestamp) -> Option<Current>
Expand description

What a live daemon is working on right now, or None.

One definition of liveness, because deleting a task and deleting a run are both gated on it from both the CLI and the web UI - four callers that must never disagree about whether the same thing is in flight. A stale heartbeat reads as “no daemon”: that is Reading::running’s judgement, and a task left at running or a run left at implementing by a killed daemon is a leftover record rather than work in progress.