pub struct LivenessConfig {
pub progress_timeout: Duration,
pub pong_timeout: Duration,
pub ping_interval: Duration,
}Expand description
Sensible default timeouts. progress_timeout is generous because a single
tool/model call can legitimately take a while; pong_timeout is tight
because the control thread answers a ping immediately regardless of what
the loop is doing.
Fields§
§progress_timeout: Duration§pong_timeout: Duration§ping_interval: DurationHow often the supervisor pings each live child. Kept well below
pong_timeout so a responsive child answers within the window (its
control thread replies regardless of what the loop is doing) and stays
Busy rather than reading Stuck. Derived, not configured directly.
Implementations§
Source§impl LivenessConfig
impl LivenessConfig
Sourcepub fn new(progress_timeout: Duration, pong_timeout: Duration) -> LivenessConfig
pub fn new(progress_timeout: Duration, pong_timeout: Duration) -> LivenessConfig
Build from the two timeouts, deriving a ping cadence (≈ a third of the pong window, clamped to a sane band).
Sourcepub fn from_env() -> LivenessConfig
pub fn from_env() -> LivenessConfig
Optional operator/test tuning via AGENTD_PROGRESS_TIMEOUT_MS /
AGENTD_PONG_TIMEOUT_MS (a niche knob — defaults are the production
values). Used by the chaos suite to exercise stuck-kill quickly.
Trait Implementations§
Source§impl Clone for LivenessConfig
impl Clone for LivenessConfig
Source§fn clone(&self) -> LivenessConfig
fn clone(&self) -> LivenessConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more