Conduit v0.7.0 Conduit.Plug.Retry

Retries messages that were nacked or raised an exception.

Options

  • attempts - Number of times to process the message before giving up. (defaults to 3)
  • backoff_factor - What multiple of the delay should be backoff on each attempt. For a backoff of 2, on each retry we double the amount of time of the last delay. Set to 1 to use the same delay each retry. (defaults to 2)
  • jitter - Size of randomness applied to delay. This is useful to prevent multiple processes from retrying at the same time. (defaults to 0)
  • delay - How long to wait between attempts. (defaults to 1000ms)

Examples

plug Retry
plug Retry, attempts: 10, delay: 10_000

Summary

Functions

Callback implementation for Conduit.Plug.call/3

Callback implementation for Conduit.Plug.init/1

Callback implementation for Conduit.Plug.run/2

Functions

call(message, next, opts)

Callback implementation for Conduit.Plug.call/3.

init(opts)

Callback implementation for Conduit.Plug.init/1.

run(message, opts \\ [])

Callback implementation for Conduit.Plug.run/2.