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 retry mechanism to requests #496

Merged

Conversation

sjanel
Copy link
Owner

@sjanel sjanel commented Jan 12, 2024

Factorize retry mechanism code into a class that is used by public API exchanges. Also add internal curl request retries.
Also, instead of throwing an exception after too many failed queries, we return an empty json instead and the code can deal with it without crashing. This makes coincenter more robust for long-term running in case of connection disruptions.

@sjanel sjanel added enhancement New feature or request refactoring Code cleaning and refactoring labels Jan 12, 2024
@sjanel sjanel force-pushed the feature/factorize-request-retries-public-requests-exchanges branch from 919636a to 292c2e9 Compare January 12, 2024 18:45
@sjanel sjanel linked an issue Jan 12, 2024 that may be closed by this pull request
@sjanel sjanel merged commit 8cead3e into main Jan 12, 2024
15 checks passed
@sjanel sjanel deleted the feature/factorize-request-retries-public-requests-exchanges branch January 12, 2024 19:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request refactoring Code cleaning and refactoring
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Manage curl errors and with retry mechanism when relevant
1 participant