pub fn current_work(home: &Path, now: Timestamp) -> Vec<Current>Expand description
Every run a live daemon is working on right now.
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. More than one entry once
crate::config::Daemon::max_concurrent_runs is more than one - a caller
after “the one thing in flight” wants is_working_on or
is_working_on_task, not this directly.