pub fn format_runs(
runs: &[RunListEntry],
finished: &[RunListEntry],
health: &DaemonHealth,
now: i64,
) -> StringExpand description
Render a run listing as an aligned table (or a friendly note when empty), with the daemon’s own health underneath when it has something to say.
finished are runs the daemon has unloaded but still remembers. They are
listed after the live ones rather than left out, because “the run I started
died on its first inference” and “there is no such run” are the two answers
issue #205’s scheduler could not tell apart, and an empty table said the
second when it meant the first.
now is unix seconds, passed in rather than read here so the output is
deterministic under test.