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

Add more robust retry to the pubmed client's send_request #1426

Merged
merged 2 commits into from
Nov 23, 2023

Conversation

kkaris
Copy link
Member

@kkaris kkaris commented Nov 20, 2023

This PR adds a more robust retry architecture for the send_request function in the pubmed client by adding a recursive retry with a randomly increased sleep time between retries.

The setup has been stress-tested with four simultaneous test runs of tests/test_pubmed_client.py .

@kkaris kkaris requested a review from bgyori November 20, 2023 17:07
@kkaris
Copy link
Member Author

kkaris commented Nov 20, 2023

The failed test is from test_db_rest, I'll check that out as well.

@kkaris
Copy link
Member Author

kkaris commented Nov 20, 2023

Re-ran the tests so that they would run simultaneously

@bgyori bgyori merged commit c0d54e1 into master Nov 23, 2023
4 checks passed
@kkaris kkaris deleted the robust-pubmed-client branch November 27, 2023 15:20
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