Documentation
¶
Overview ¶
Package backoff holds the retry-delay arithmetic and the cancellable wait that runner's retry loops share: startup and warm-pool retries, listener reconnects, runner-removal retries and guest-agent polling.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Delay ¶
func Delay(failures int, initial, maximum, cooldown time.Duration, cooldownAfter int, sample float64) time.Duration
Delay is the startup-retry wait: Exponential with Jitter, replaced by a flat cooldown once failures reach cooldownAfter.
func Exponential ¶ added in v0.14.0
Exponential is the wait after the given number of consecutive failures: initial for the first, doubling with each further failure, capped at maximum. No failures means no wait.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.