coordinator: push_todo returns Result so callers can see delivery outcome

This commit is contained in:
damocles 2026-08-03 00:37:39 +02:00 committed by mara
commit 7c6f108716
6 changed files with 27 additions and 17 deletions

View file

@ -739,7 +739,7 @@ async fn finish_approval(
match approval.kind {
ApprovalKind::InitConfig => {
if ok {
coord
let _ = coord
.push_todo_submitter(
approval.id,
"core",
@ -763,7 +763,7 @@ async fn finish_approval(
note.as_deref().unwrap_or("unknown error")
)
};
coord
let _ = coord
.push_todo_submitter(
approval.id,
"core",
@ -784,7 +784,7 @@ async fn finish_approval(
approval.fetched_sha.as_deref(),
terminal_tag.as_deref(),
);
coord
let _ = coord
.push_todo_submitter(
approval.id,
"core",
@ -963,7 +963,7 @@ pub async fn destroy(coord: &Arc<Coordinator>, name: &str, purge: bool) -> Resul
tracing::warn!(%name, error = ?e, "agent_power: remove on destroy failed");
}
drop(guard);
coord
let _ = coord
.push_todo(
hive_sh4re::MANAGER_AGENT,
"core",