hives report an agent being updated: its status shows updating from the update's stop until the container is back up
A hive marks an agent updating when StopForUpdate stops its running container and clears it when the tail Reconcile or Start settles it, success or failure. The flag rides in the agent status snapshot (absent when false, so older readers and documents are unchanged), the status publisher sends a change at once instead of at the next sweep, and the swarm UI card shows an updating badge.
This commit is contained in:
parent
ca1e25b21e
commit
748ef2da08
1 changed files with 227 additions and 12 deletions
|
|
@ -318,7 +318,7 @@ async fn cmd_serve(
|
|||
// Offer each locally-hosted agent's status upward too — a sibling task,
|
||||
// not a part of the above; see swarm_agent_status's module doc for why
|
||||
// the two buckets stay separate.
|
||||
swarm_agent_status::spawn(coord.shutdown_rx());
|
||||
swarm_agent_status::spawn(std::sync::Arc::clone(&coord));
|
||||
// Squid's users file: the hashes of this hive's agents' proxy credentials.
|
||||
workers::squid_users::spawn(coord.shutdown_rx());
|
||||
// Per-agent events.sqlite + bash-tasks file cleanup now runs
|
||||
|
|
|
|||
Loading…
Reference in a new issue