How long to wait between attempts, and how long a whole run of them can take.
Shared by the RPC client and the libs/external adapters, so a flaky third-party API and a flaky internal service get one policy. Which failures are worth retrying is the caller's call; it knows what a second attempt could repeat.
FC/IS: pure.
How long to wait between attempts, and how long a whole run of them can take. Shared by the RPC client and the libs/external adapters, so a flaky third-party API and a flaky internal service get one policy. Which failures are worth retrying is the caller's call; it knows what a second attempt could repeat. FC/IS: pure.
(attempts-left? policy attempt)Whether policy allows another attempt after the attempt-th.
Whether `policy` allows another attempt after the `attempt`-th.
(budget-ms policy timeout-ms)Longest a run of attempts can take: every attempt's timeout plus the delays slept between them. A breaker's probe lease must outlive this, or it expires mid-probe and a second caller sends a second probe.
Longest a run of attempts can take: every attempt's timeout plus the delays slept between them. A breaker's probe lease must outlive this, or it expires mid-probe and a second caller sends a second probe.
(delay-ms policy attempt)Delay after the attempt-th failed attempt (1-based), capped at
:max-delay-ms when set.
Delay after the `attempt`-th failed attempt (1-based), capped at `:max-delay-ms` when set.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |