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

Behaviour of circuit breaker in HALF-OPEN state #55

Open
akash-nx opened this issue Nov 10, 2022 · 1 comment
Open

Behaviour of circuit breaker in HALF-OPEN state #55

akash-nx opened this issue Nov 10, 2022 · 1 comment

Comments

@akash-nx
Copy link

Does this library tests the service call when state is HALF OPEN?

@watfordkcf
Copy link

Yes, you can check the functional tests to confirm:

# circuit half-open -> next call will be passed through
assert not circuitbreaker.closed
assert circuitbreaker.failure_count == 2
assert circuitbreaker.open_remaining < 0
assert circuitbreaker.state == STATE_HALF_OPEN

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