We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hey, pybreaker doesn't behave as expected with async code on the asyncio event loop. Is it because it isn't supported or am I doing something wrong?
Here's my code:
data_services_breaker = pybreaker.CircuitBreaker(fail_max=2, reset_timeout=60) @data_services_breaker async def get_all_bookings(): async with aiohttp.ClientSession() as session: async with session.get('https://api.githubXXXX.com/events') as resp: return await resp.text()
CircuitBreakerError is never thrown...
Thanks!
The text was updated successfully, but these errors were encountered:
Coroutines are not supported. PRs are welcome though! 😅
Sorry, something went wrong.
No branches or pull requests
Hey, pybreaker doesn't behave as expected with async code on the asyncio event loop. Is it because it isn't supported or am I doing something wrong?
Here's my code:
CircuitBreakerError is never thrown...
Thanks!
The text was updated successfully, but these errors were encountered: