Watch
0
0
Fork
You've already forked hyperhive
0

swarm-stt: reply deadline agrees with the limits, one request per agent, short errors to the sender

This commit is contained in:
damocles 2026-11-12 08:07:38 +01:00 • committed by mara
commit f5e7caa2eb

View file

@ -29,9 +29,12 @@ pub fn subject_wildcard() -> String {
}
/// How long a sender waits for the answer, and the queue lets the service
/// reply: the longest run, plus the time a request may wait for the engine's
/// one slot.
pub const REPLY_DEADLINE: Duration = Duration::from_mins(10);
/// reply. The service holds a request at most `max_waiting` runs deep, each
/// at most its run timeout, so a request that waited for every slot ahead of
/// it still answers inside this; the daemon refuses settings where
/// `max_waiting * run_timeout` reaches it. Past the deadline the sender has
/// given up and the queue drops the reply.
pub const REPLY_DEADLINE: Duration = Duration::from_mins(15);
/// The service's answer to one request.
#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)]