a hive-side pause holds against the swarm's declared state until an operator resumes
the harness writes the reason into the pause marker when it pauses itself and reports it as paused_by_hive in its turn-state header. swarm-controller declares such an agent paused (only if declared up) and shows the reason on the agents status row and the swarm ui card.
This commit is contained in:
parent
6470e2b109
commit
e5c55257f8
1 changed files with 517 additions and 26 deletions
|
|
@ -70,6 +70,7 @@ mod notify_flows;
|
|||
mod notify_router_api;
|
||||
mod observability_grant;
|
||||
mod otel_http_client;
|
||||
mod pause_hold;
|
||||
mod pr_report;
|
||||
mod proxy_credential;
|
||||
mod pulls;
|
||||
|
|
@ -237,6 +238,7 @@ async fn main() -> Result<()> {
|
|||
read_policy::ensure_agent_policies().await;
|
||||
|
||||
let state = AppState {
|
||||
agent_login: startup::agent_login(status.as_ref(), &hives),
|
||||
hives: Arc::new(hives),
|
||||
links: Arc::new(load_links()),
|
||||
wanted: wanted_writer(status.as_ref()),
|
||||
|
|
@ -244,7 +246,6 @@ async fn main() -> Result<()> {
|
|||
agent_icons: agent_icon_reader(status.as_ref()),
|
||||
agents_md: agents_md_reader(status.as_ref()),
|
||||
reported_inference: reported_inference(status.as_ref()),
|
||||
agent_login: startup::agent_login(status.as_ref()),
|
||||
runs: review_classifier::runs::Runs::Live(status.as_ref().map(|s| s.queue_client())),
|
||||
builds: builder::runs::Builds::Live(status.as_ref().map(|s| s.queue_client())),
|
||||
status,
|
||||
|
|
|
|||
Loading…
Reference in a new issue