View Source Commanded.Event.ErrorHandler (Commanded v1.4.8)

Summary

Functions

Backoff exponentially when an error is encountered.

Functions

backoff(error, event, failure_context, opts \\ [])

Backoff exponentially when an error is encountered.

  • Adds up to 1 second of jitter.
  • Minimum of 1 second delay
  • Maximum of 24 hour delay

stop_on_error(arg, failed_event, failure_context)

Stop the Commanded.Event.Handler with the reason given.