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

@ -160,7 +160,9 @@ async fn dispatch(req: &HostRequest, coord: Arc<Coordinator>) -> HostResponse {
.collect();
HostResponse::dags(dags)
}
HostRequest::QueueNodes { id } => HostResponse::nodes(coord.job_queue.dag_nodes(*id)),
HostRequest::QueueNodes { id } => {
HostResponse::nodes(coord.job_queue.node_subtree(*id))
}
HostRequest::List => HostResponse::list(lifecycle::list().await?),
// The agents root is ours and not world-traversable, so this
// question is only answerable on this side of the socket —