lifecycle: thread on_step callback through rebuild for accurate queue step labels

This commit is contained in:
damocles 2026-05-31 23:53:02 +02:00 committed by mara
commit d14df8b9a0
4 changed files with 20 additions and 3 deletions

View file

@ -86,7 +86,6 @@ pub async fn rebuild_agent(
// lifecycle_action; this catches the auto-update scan + any
// other direct caller.
let guard = coord.transient_guard(name, crate::coordinator::TransientKind::Rebuilding);
coord.set_queue_step(queue_entry_id, "nixos-container update");
let result = lifecycle::rebuild(
name,
&coord.hyperhive_flake,
@ -97,6 +96,7 @@ pub async fn rebuild_agent(
coord.dashboard_port,
&coord.operator_pronouns,
&coord.context_window_tokens,
&|step| coord.set_queue_step(queue_entry_id, step),
)
.await;
drop(guard);