lifecycle: rebuild reconciles bind flag idempotently and restarts
This commit is contained in:
parent
377eb994a1
commit
764d6497dd
2 changed files with 24 additions and 12 deletions
|
|
@ -77,7 +77,8 @@ async fn dispatch(req: &HostRequest, agent_flake: &str, coord: &Coordinator) ->
|
|||
}
|
||||
HostRequest::Rebuild { name } => {
|
||||
tracing::info!(%name, "rebuild");
|
||||
lifecycle::rebuild(name, agent_flake).await?;
|
||||
let agent_dir = Coordinator::agent_dir(name);
|
||||
lifecycle::rebuild(name, agent_flake, &agent_dir).await?;
|
||||
HostResponse::success()
|
||||
}
|
||||
HostRequest::List => HostResponse::list(lifecycle::list().await?),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue