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

Unclear/unexpected behaviour on api timeout when using send_async_request #365

Open
michiel-nwa opened this issue Jan 17, 2025 · 1 comment

Comments

@michiel-nwa
Copy link

In the process of debugging an issue I have I tried understanding send_async_request better.

When sending multiple notifications using send_async_request if one of the calls to the API results in a timeout, this throws an Exception. At that point it's unclear which of the requests succeeded and which ones might need to be retried.

I think calling asyncio.gather with return_exceptions=True might be closer to what I was expecting, but my understanding of asyncio is still limited.

Nice to have is probably some way to set a number of automatic retries on timeout.

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
@michiel-nwa and others