Skip to main content

DEFAULT_SAMPLING_TIMEOUT

Constant DEFAULT_SAMPLING_TIMEOUT 

Source
pub const DEFAULT_SAMPLING_TIMEOUT: Duration;
Expand description

Default per-call timeout. Drives the bounded wait around peer.create_message; if the client refuses or stalls, the caller sees a structured timeout error instead of an indefinite hang.

30 seconds matches the consolidate-timer’s cadence margins: an LLM call slower than this would already starve the Steward batch in P4’s coordinator. Configurable per-construct via SamplingLlmClient::with_timeout.