job_queue: drop the NodeKind::Dag/root filter from the QueueNodes lookup

This commit is contained in:
damocles 2026-08-03 20:03:48 +02:00 committed by mara
commit 309c1c91c6
4 changed files with 48 additions and 43 deletions

View file

@ -66,8 +66,8 @@ async fn wait_for_dags_plain(socket: &Path, ids: Vec<u64>) -> Result<()> {
let nodes = resp.nodes.unwrap_or_default();
let Some(root) = find_root(&nodes) else {
// Unknown id — nothing prunes the graph yet (see
// `JobQueue::dag_nodes`'s doc comment), so an id that
// resolves to no container never named a real DAG. A
// `JobQueue::node_subtree`'s doc comment), so an id that
// resolves to no node never named a real DAG. A
// *completed* DAG's nodes keep riding here instead, with a
// terminal root `state`, which is what the check below
// watches for.