Conduit v0.12.10 Conduit.Plug.Retry View Source

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

Link to this section Summary

Functions

Callback implementation for Conduit.Plug.call/3

Callback implementation for Conduit.Plug.init/1

Callback implementation for Conduit.Plug.run/2

Link to this section Functions

Link to this function call(message, next, opts) View Source

Callback implementation for Conduit.Plug.call/3.

Callback implementation for Conduit.Plug.init/1.

Link to this function run(message, opts \\ []) View Source

Callback implementation for Conduit.Plug.run/2.