retryable v0.3.0 Retryable

Link to this section Summary

Functions

Enqueues a new piece of work to be carried out, and waits for it to complete, returning the result

Enqueues a new piece of work to be carried out, and waits for it to complete. Returns the result

Enqueues a new piece of work to be carried out, without waiting for it to complete. Returns the id of the work

Enqueues a new piece of work to be carried out, without waiting for it to complete. Returns the id of the work

Create a pool of workers called name, with max_concurrent_jobs (defaults to 10) number of concurrent processes

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

Link to this section Functions

Enqueues a new piece of work to be carried out, and waits for it to complete, returning the result.

Link to this function call(work, pool_name \\ DefaultPool)

Enqueues a new piece of work to be carried out, and waits for it to complete. Returns the result.

Enqueues a new piece of work to be carried out, without waiting for it to complete. Returns the id of the work.

Link to this function cast(work, pool_name \\ DefaultPool)

Enqueues a new piece of work to be carried out, without waiting for it to complete. Returns the id of the work.

Link to this function create_pool(pool_name, max_concurrent_jobs \\ 10)

Create a pool of workers called name, with max_concurrent_jobs (defaults to 10) number of concurrent processes.

Link to this function exponential_backoff(value_ms, attempts, exp_base \\ 2)

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

Link to this function jitter(amount_ms)

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

Link to this function jitter(value_ms, amount_ms)