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

fix(integration): Add more auto retries for reuqest limit errors #2570

Merged
merged 1 commit into from
Sep 12, 2024

Conversation

vincent-pochet
Copy link
Collaborator

Context

Many dead jobs are raised by integration with an SSS_REQUEST_LIMIT_EXCEEDED error code.
Theses jobs should be automatically retried without ending up in the dead queue.

Description

This PR adds the logic to dig in the error message of integration response looking for the error code. When this error code is SSS_REQUEST_LIMIT_EXCEEDED it now raises a new RequestLimitError and related jobs are now able to reprocess up to 10 times

@vincent-pochet vincent-pochet merged commit 36110b5 into main Sep 12, 2024
6 checks passed
@vincent-pochet vincent-pochet deleted the fix-auto-retry-request-limit-integration branch September 12, 2024 08:12
vincent-pochet added a commit that referenced this pull request Oct 14, 2024
## Context

This PR follows #2570

## Description

It updates the way we check for the presence of the rate error limit
code in the payload to avoid parsing the JSON body and be independent
from the format of the response.
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