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

Backoff on 503 errors for ask, find and search #96

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

ebrehault
Copy link
Collaborator

No description provided.

@@ -60,6 +62,13 @@ def _auth(self) -> NucliaAuth:

@kb
@pretty
@backoff.on_exception(
backoff.expo,
exceptions.UnknownError,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This exception is raised for any 5xx error, so we'll be retrying all of them by default.

I'm not against it, but just to have it in mind. I think it would be better to retry specific status codes that we know will be resolved.

What intermittent error are you trying to fix?

@ebrehault ebrehault force-pushed the ericbrehault/sc-10499/implement-back-off-on-search-in-the-python branch from f29b407 to 993e30a Compare October 16, 2024 12:44
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 this pull request may close these issues.

2 participants