rebuild re-registers agent; preserve /run/hyperhive across restarts
This commit is contained in:
parent
746132d41e
commit
af464e27f4
3 changed files with 5 additions and 1 deletions
|
|
@ -77,7 +77,7 @@ async fn dispatch(req: &HostRequest, agent_flake: &str, coord: &Coordinator) ->
|
|||
}
|
||||
HostRequest::Rebuild { name } => {
|
||||
tracing::info!(%name, "rebuild");
|
||||
let agent_dir = Coordinator::agent_dir(name);
|
||||
let agent_dir = coord.register_agent(name).await?;
|
||||
lifecycle::rebuild(name, agent_flake, &agent_dir).await?;
|
||||
HostResponse::success()
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue