pybreaker
pybreaker copied to clipboard
Monitoring two or more funcions
I'm trying use the decorator to monitoring two functions saving the state in redis, but when the first function is ok and the second function is failed, and i make a request again, the first function when is ok reset the counter of fails and the circuit never open
I think you just need to pass a namespace to the CircuitRedisStorage instance.
CircuitRedisStorage(..., namespace='func1')
CircuitRedisStorage(..., namespace='func2')