Method: Semian::CircuitBreaker#mark_failed
- Defined in:
- lib/semian/circuit_breaker.rb
#mark_failed(error) ⇒ Object
70 71 72 73 74 75 76 77 |
# File 'lib/semian/circuit_breaker.rb', line 70 def mark_failed(error) push_error(error) if closed? transition_to_open if error_threshold_reached? elsif half_open? transition_to_open end end |