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
|
|
@ -73,6 +73,11 @@ pub struct AgentStatusRow {
|
|||
/// `AppState::agent_login` — this reader sees the hive's bucket, and the
|
||||
/// flag comes from the agent itself.
|
||||
pub needs_login: Option<bool>,
|
||||
/// Why the agent's own harness paused its turn loop, from its latest
|
||||
/// turn-state header; `None` when that header named none, none arrived
|
||||
/// since swarm-controller started, or the harness predates the field.
|
||||
/// Filled in by the `GET /api/agents/status` handler like `needs_login`.
|
||||
pub paused_by_hive: Option<String>,
|
||||
/// The archetype the agent is built from; `None` for a custom agent. Always
|
||||
/// `None` out of this reader, filled in by the `GET /api/agents/status`
|
||||
/// handler from the `agent-archetype` bucket.
|
||||
|
|
@ -202,6 +207,7 @@ fn render(
|
|||
config_pr: None,
|
||||
wanted: None,
|
||||
needs_login: None,
|
||||
paused_by_hive: None,
|
||||
archetype: None,
|
||||
},
|
||||
})
|
||||
|
|
@ -248,6 +254,7 @@ fn row(
|
|||
config_pr: None,
|
||||
wanted: None,
|
||||
needs_login: None,
|
||||
paused_by_hive: None,
|
||||
archetype: None,
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue