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

implement retries #9

Merged
merged 1 commit into from
Aug 19, 2024
Merged

implement retries #9

merged 1 commit into from
Aug 19, 2024

Conversation

aviau
Copy link
Member

@aviau aviau commented Aug 19, 2024

WIP for now.

I think this does not play well with requests-mock, so we can't test it really.

@aviau aviau force-pushed the aviau/retry branch 4 times, most recently from f2abbb2 to 2d375c3 Compare August 19, 2024 16:09
@aviau aviau changed the title WIP: implement retries implement retries Aug 19, 2024
@aviau aviau requested a review from isra17 August 19, 2024 16:28
@aviau
Copy link
Member Author

aviau commented Aug 19, 2024

WDYT @isra17 ?

I tested and it works. I wish I could have a unit test but not really possible with requests-mock.

The leaksdb/sources endpoint fails a lot (separate bug), and it made my script stable!

@isra17
Copy link
Member

isra17 commented Aug 19, 2024

I don't think I would enable retry by default. Actually, the more I think about it, the more I would rather just document how to do it through custom session and not build this in the client sdk.

@aviau
Copy link
Member Author

aviau commented Aug 19, 2024

Hmm, I don't mind documenting custom sessions, but I think this might fix problems for most users at little cost.

@aviau aviau merged commit 4ca283d into main Aug 19, 2024
5 checks passed
@aviau aviau deleted the aviau/retry branch August 19, 2024 17:45
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