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

Abandon collection jobs early when a fatal error is encountered #2476

Merged
merged 1 commit into from
Jan 12, 2024

Conversation

inahga
Copy link
Contributor

@inahga inahga commented Jan 11, 2024

This sets a collection job to immediately abandon on failure, except in a narrow set of retryable errors.

The is_retryable_error() function is relatively narrow. It basically only retries on particular HTTP status codes and database errors. It's tricky to enumerate all possible retryable rrors. I'm welcome to input if there are other errors that should be retried.

Note that it retries on 500 errors. I don't really want it to, but this is done to share the logic with the other HTTP retry logic we have. I will address whether we should generally retry on 500 errors in a future PR.

I will give the same treatment to aggregation jobs in another PR (see #235)

@inahga inahga requested a review from a team as a code owner January 11, 2024 23:49
Copy link
Contributor

@tgeoghegan tgeoghegan left a comment

Choose a reason for hiding this comment

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

You'll need to backport this to release/0.6.

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