swarm-stt: reply deadline agrees with the limits, one request per agent, short errors to the sender
This commit is contained in:
parent
ee10acb154
commit
f5e7caa2eb
1 changed files with 194 additions and 65 deletions
|
|
@ -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)]
|
||||
|
|
|
|||
Loading…
Reference in a new issue