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

Summary

Functions

backoff(error, event, failure_context, jitter_fn \\ &one_second_jitter/0)

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.