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

Retry operations with distribution repositories, such as apt update #248

Open
NickVolynkin opened this issue Jun 16, 2022 · 0 comments
Open
Labels

Comments

@NickVolynkin
Copy link
Contributor

apt update or yum update in package jobs sometimes fail due to repository being temporarily unavailable. It's a normal behaviour for a repository and network, we cannot expect 100% reliability from them. So, we should learn to overcome this problem.

One of possible solutions is to retry all repository operations in the build script. Making an extra attempt or even ten extra attempts is still much better than restarting the job manually.

I'd propose that we retry update tasks 10 times with 10 second intervals. Both numbers are subject to discussion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants