pub fn backoff_ms(run: RunId, failures_in_a_row: u32, failure: &AxError) -> u64Expand description
How long run waits before asking again after failure, the
failures_in_a_row-th since its provider last answered: the longer of
the schedule below and the provider’s own retry-after.
The one back-off table. Watchdog reads it for a model call, and
the web_search tool reads it for a search it sends again
(crates/accounting/spec/Connectors.lean §8-35), so the two kinds of
outside request wait alike.