retryable v0.1.0 Retryable

Summary

Functions

Creates a new piece of work to be carried out

Adds an exponential backoff to a retry time based on the number of attempts

Adds jitter to a retry time so that many failing jobs won’t all retry at the same time

Functions

attempt_work(opts \\ [])

Creates a new piece of work to be carried out.

exponential_backoff(value_ms, attempts, exp_base \\ 2)

Adds an exponential backoff to a retry time based on the number of attempts

jitter(amount_ms)

Adds jitter to a retry time so that many failing jobs won’t all retry at the same time

jitter(value_ms, amount_ms)

Macros

attempt(opts \\ [])