Skip to main content

decide

Function decide 

Source
pub fn decide(
    policy: &TriggerPolicy,
    input: &TriggerInput,
) -> Option<PushReason>
Expand description

The trigger state machine.

Order matters, and each step earns its position: backoff gates everything (a failing endpoint must not be hammered on every tick), a clean session is never pushed (there is nothing new to say), exit outranks the timers (the final state should land promptly rather than waiting out a window the harness will never close), then quiescence, then the periodic net.