Rexsilient.CircuitBreaker.Recover.BasicTimeout (Rexsilient v1.0.0)

Copy Markdown View Source

Keeps the breaker open, and gives a probe, a fixed time.

Options

  • :reset_timeout - how long, in milliseconds, the breaker stays open before it lets a probe call through. Required.

  • :probing_timeout - how long, in milliseconds, a probe may run before the breaker becomes half-open again and lets another probe through. Must be positive: with 0, every probe would time out as it starts. Required.

Examples

recover Rexsilient.CircuitBreaker.Recover.BasicTimeout,
  reset_timeout: :timer.seconds(30),
  probing_timeout: :timer.seconds(10)