swarm: subagent-status KV bucket, the run state of each subagent
One key per subagent (<agent>.<subagent>) holding running/finished, since, exit, model, effort and the publish time. The controller creates the bucket, and the agent credential may publish its own keys. Nothing reads or writes it yet; the daemon publisher and the controller list follow.
This commit is contained in:
parent
c9c2e75091
commit
c7d7f0df55
1 changed files with 214 additions and 0 deletions
|
|
@ -73,6 +73,12 @@ pub(crate) fn spawn(client: async_nats::Client, wanted: Arc<WantedWriter>, hives
|
|||
tracing::debug!("terminal streams: queue not connected; next pass");
|
||||
continue;
|
||||
}
|
||||
if let Err(e) = swarm_queue_client::subagent_status::open_or_create(&client).await {
|
||||
tracing::warn!(
|
||||
error = %swarm_queue_client::chain(&e),
|
||||
"subagent status: opening the bucket failed; next pass"
|
||||
);
|
||||
}
|
||||
for agent in live_agents(&wanted, &hives).await {
|
||||
if let Err(e) =
|
||||
swarm_queue_client::subagent_term::open_or_create(&client, &agent).await
|
||||
|
|
|
|||
Loading…
Reference in a new issue