Skip to main content

RETRY_BUDGET_MS

Constant RETRY_BUDGET_MS 

Source
pub const RETRY_BUDGET_MS: u64 = 120_000;
Expand description

Total time one call may spend waiting out rate limits before it reports a failure.

Two minutes is long enough to ride out the refusals a paced copy still collects and short enough that a command an operator is watching returns. The bound is what makes the wait a wait rather than a hang: a call refused past it ends in a diagnostic naming the limiter, not in a process nobody can tell from a wedged one.