Liking cljdoc? Tell your friends :D

wagoe.platform.core.retry

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.
raw docstring

attempts-left?clj

(attempts-left? policy attempt)

Whether policy allows another attempt after the attempt-th.

Whether `policy` allows another attempt after the `attempt`-th.
sourceraw docstring

budget-msclj

(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.
sourceraw docstring

default-policyclj

source

delay-msclj

(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.
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
←Move to previous article
→Move to next article
Ctrl+/Jump to the search field
× close