Skip to content

Latest commit

 

History

History
21 lines (13 loc) · 530 Bytes

README.md

File metadata and controls

21 lines (13 loc) · 530 Bytes

breaker

Build Status

Small python library to help with serving requests between services.

Currently holds a simple Circuit Breaker which is used to fail fast on services that are returning errors.

Usage

from breaker import CircuitBreaker

def my_function(a, b):
    return a + b

cb = CircuitBreaker(my_function, failures_allowed=3, timeout=10)

cb.call(a, b)