agent: export swarm-queue connected gauge and skipped-publish counter, with dashboard panels
This commit is contained in:
parent
04f61c0e14
commit
e9025823d9
1 changed files with 381 additions and 24 deletions
|
|
@ -42,6 +42,7 @@ mod swarm_inference;
|
|||
mod swarm_input;
|
||||
mod swarm_permissions;
|
||||
mod swarm_queue;
|
||||
mod swarm_queue_gauge;
|
||||
mod swarm_term;
|
||||
mod term_msg;
|
||||
mod todo_server;
|
||||
|
|
@ -489,6 +490,9 @@ async fn serve_main<S: Surface>(socket: &Path, poll_ms: u64) -> Result<()> {
|
|||
// not on a publisher's first call, holds that whichever publishers start.
|
||||
swarm_queue::init()?;
|
||||
tokio::spawn(swarm_queue::client());
|
||||
// Whether that connection is up, for the agents dashboard: the client
|
||||
// reconnects in the background, so a detached agent otherwise looks alive.
|
||||
tokio::spawn(swarm_queue_gauge::run());
|
||||
// Config fact, stamped once — see `harness_state::write_api_key_mode`'s
|
||||
// doc for why hive-c0re needs this to stop reporting `needs_login` for
|
||||
// an agent whose `~/.claude/` is empty by design.
|
||||
|
|
|
|||
Loading…
Reference in a new issue