hive-c0re: publish each agent's status upward to the swarm queue (#3341 item 1)
This commit is contained in:
parent
5b27aa18c2
commit
e6d5e2da28
4 changed files with 286 additions and 0 deletions
|
|
@ -34,6 +34,7 @@ mod snapshot_push;
|
|||
mod socket_server;
|
||||
mod stats;
|
||||
mod stores;
|
||||
mod swarm_agent_status;
|
||||
mod swarm_notices;
|
||||
mod swarm_queue;
|
||||
mod swarm_status;
|
||||
|
|
@ -498,6 +499,10 @@ async fn cmd_serve(
|
|||
// swarm_status, which owns the whole task including its own decision
|
||||
// not to start.
|
||||
swarm_status::spawn(std::sync::Arc::clone(&coord), coord.shutdown_rx());
|
||||
// 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());
|
||||
// Per-agent events.sqlite + bash-tasks file cleanup now runs
|
||||
// agent-side in the harness (`hive_agent::vacuum`): the files are
|
||||
// agent-owned, so host-side deletes hit PermissionDenied / readonly-db
|
||||
|
|
|
|||
Loading…
Reference in a new issue