Skip to main content

next_delay

Function next_delay 

Source
pub fn next_delay(
    outcome: &PassOutcome,
    retry_after_secs: Option<f64>,
    failures: u32,
    policy: &SchedulePolicy,
) -> Option<f64>
Expand description

Seconds until the next run, never below policy.min_secs; None when nothing should be scheduled (disabled, or waiting for the app’s consent answer).

retry_after_secs is the engine’s own figure for the pass (its backoff, server hint and pending floor already applied); failures is the ledger’s consecutive failure count and is used only when a failed pass carries no engine figure.