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 for the HTTP requests #99

Open
olegbespalov opened this issue Jan 15, 2025 · 0 comments
Open

Implement retries for the HTTP requests #99

olegbespalov opened this issue Jan 15, 2025 · 0 comments

Comments

@olegbespalov
Copy link
Contributor

What?

Currently, the requests for the builder service are made by using the standard HTTP client.

resp, err := http.DefaultClient.Do(req)

Unfortunately, the network isn't reliable and in case of its failures, it's better to have a retry mechanism in place which will re-do the HTTP request if it fails.

It will be good if it will be flexible, but maybe a simple exponential back off should be enough for the start.

Why?

Protect us from the network failures.

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

No branches or pull requests

1 participant