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

catch_and_convert_errors should support retry #89

Open
jakethekoenig opened this issue Jul 14, 2024 · 2 comments
Open

catch_and_convert_errors should support retry #89

jakethekoenig opened this issue Jul 14, 2024 · 2 comments

Comments

@jakethekoenig
Copy link
Member

On APIError or APIConnectionError we may want to retry. I'm not sure context managers can support this but it'd be nice if the client could have a retry strategy and if it gets one of those exceptions it sleeps with exponential back off with configurable base and start value and then starts at the top of the contextmanager block. And then raises the exception after a configurable number of failures.

@jakethekoenig
Copy link
Member Author

@MentatBot can you do this?

@mentatai
Copy link
Contributor

mentatai bot commented Jul 14, 2024

I will start working on this issue

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

Successfully merging a pull request may close this issue.

1 participant