swarm-builder: log each archetype eval's elapsed time, wait 5 minutes
This commit is contained in:
parent
b79896c237
commit
cce00a6592
7 changed files with 195 additions and 24 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue