Watch
0
0
Fork
You've already forked hyperhive
0

swarm-builder: log each archetype eval's elapsed time, wait 5 minutes

This commit is contained in:
atlas 2026-10-25 18:20:41 +01:00 • committed by mara
commit cce00a6592
7 changed files with 195 additions and 24 deletions

View file

@ -19,7 +19,7 @@ use swarm_controller_api::inference::InferenceSettings;
use swarm_controller_api::limits::Caps;
use swarm_queue_client::archetypes::{ArchetypeMeta, BUILTIN_SOURCE, SourceRecord};
use swarm_wire::builder::{
ARCHETYPES_DEADLINE, ARCHETYPES_SUBJECT, ArchetypesReply, EvalArchetypes,
ARCHETYPES_REPLY_DEADLINE, ARCHETYPES_SUBJECT, ArchetypesReply, EvalArchetypes,
};
use utoipa::ToSchema;
@ -109,7 +109,7 @@ async fn evaluate(client: &async_nats::Client) -> Result<SourceRecord, String> {
let body = serde_json::to_vec(&EvalArchetypes {}).map_err(|e| e.to_string())?;
let sent = async_nats::Request::new()
.payload(body.into())
.timeout(Some(ARCHETYPES_DEADLINE));
.timeout(Some(ARCHETYPES_REPLY_DEADLINE));
let msg = client
.send_request(ARCHETYPES_SUBJECT, sent)
.await