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
|
|
@ -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,
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue