Watch
0
0
Fork
You've already forked hyperhive
0

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:
atlas 2026-11-09 23:09:14 +01:00 • committed by mara
commit e5c55257f8

View file

@ -471,6 +471,7 @@ pub(crate) async fn get_agents_status(
if let Some(login) = state.agent_login.as_ref() {
for row in &mut rows {
row.needs_login = login.get(&row.name);
row.paused_by_hive = login.paused_by_hive(&row.name);
}
}
// Absent on a failed read, like `wanted`: one unreadable bucket
@ -1816,6 +1817,7 @@ mod tests {
config_pr: None,
wanted: None,
needs_login: None,
paused_by_hive: None,
archetype: None,
}
}