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

Added retry functionality for LS failed uploads #22

Merged
merged 3 commits into from
Aug 10, 2023
Merged

Conversation

harshithere
Copy link
Contributor

@harshithere harshithere commented Aug 10, 2023

Why
LS api calls often timeout due to 504 errors. Since this is a flaky situation, adding an retry mechanism using tenacity to improve the chances of such requests succeeding

What
Added retry with exponential decay (Only on upload for now as download happens directly on DB and in batches)

Links
Jira ticket
Related Issue

@harshithere harshithere added the bug Something isn't working label Aug 10, 2023
@harshithere harshithere self-assigned this Aug 10, 2023
@greed2411
Copy link
Member

not aware of tenacity .
but looks like retry mechanism isn't supported out of the box. but yeah go ahead if smoke test works.

looks good to me. go ahead with merge.

@harshithere harshithere merged commit 3900ac6 into master Aug 10, 2023
1 check passed
@harshithere harshithere deleted the retry_ls branch August 10, 2023 10:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants