Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Monitoring two or more funcions #58

Open
leo14993 opened this issue Jul 7, 2021 · 1 comment
Open

Monitoring two or more funcions #58

leo14993 opened this issue Jul 7, 2021 · 1 comment

Comments

@leo14993
Copy link

leo14993 commented Jul 7, 2021

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

@Cruuncher
Copy link
Contributor

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants