This commit is contained in:
müde 2026-05-15 02:02:20 +02:00
parent 1333532d3f
commit fcd6563887
3 changed files with 5 additions and 10 deletions

View file

@ -9,6 +9,7 @@ use std::path::Path;
use std::sync::Arc;
use anyhow::{Context, Result};
use axum::extract::Form;
use axum::{
Router,
extract::{Path as AxumPath, State},
@ -19,7 +20,6 @@ use axum::{
},
routing::{get, post},
};
use axum::extract::Form;
use hive_sh4re::{Approval, MANAGER_AGENT, Message};
use serde::Deserialize;
use tokio_stream::wrappers::BroadcastStream;
@ -215,9 +215,7 @@ fn gc_orphans(coord: &Coordinator, approvals: Vec<Approval>) -> Vec<Approval> {
if Coordinator::agent_proposed_dir(&a.agent).exists() {
true
} else {
let _ = coord
.approvals
.mark_failed(a.id, "agent state dir missing");
let _ = coord.approvals.mark_failed(a.id, "agent state dir missing");
tracing::info!(id = a.id, agent = %a.agent, "auto-failed orphan approval");
false
}