pybreaker icon indicating copy to clipboard operation
pybreaker copied to clipboard

Monitoring two or more funcions

Open leo14993 opened this issue 4 years ago • 1 comments

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

leo14993 avatar Jul 07 '21 12:07 leo14993

I think you just need to pass a namespace to the CircuitRedisStorage instance.

CircuitRedisStorage(..., namespace='func1') CircuitRedisStorage(..., namespace='func2')

Cruuncher avatar Dec 13 '21 22:12 Cruuncher