swarm: an agent's open todos, mirrored to the queue and served by the controller
This commit is contained in:
parent
c9604a6708
commit
b239500f88
1 changed files with 478 additions and 6 deletions
|
|
@ -91,6 +91,12 @@ pub(crate) fn spawn(client: async_nats::Client, wanted: Arc<WantedWriter>, hives
|
|||
"agent commands: opening the bucket failed; next pass"
|
||||
);
|
||||
}
|
||||
if let Err(e) = swarm_queue_client::agent_todos::open_or_create(&client).await {
|
||||
tracing::warn!(
|
||||
error = %swarm_queue_client::chain(&e),
|
||||
"agent todos: opening the bucket failed; next pass"
|
||||
);
|
||||
}
|
||||
for agent in live_agents(&wanted, &hives).await {
|
||||
if let Err(e) = swarm_queue_client::bash_task::open_output(&client, &agent).await {
|
||||
tracing::warn!(
|
||||
|
|
|
|||
Loading…
Reference in a new issue