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

ci: reattempt download on failure with a backoff sleep time #683

Merged
merged 1 commit into from
Sep 21, 2021

Conversation

mudler
Copy link
Contributor

@mudler mudler commented Sep 21, 2021

Fixes #675

Signed-off-by: Ettore Di Giacinto edigiacinto@suse.com

Fixes #675

Signed-off-by: Ettore Di Giacinto <edigiacinto@suse.com>
@mudler mudler requested a review from Itxaka September 21, 2021 13:56
@@ -22,7 +23,18 @@ type resultData struct {
Exists bool
}

func downloadImage(img, dst string) error {
func retryDownload(img, dest string, t int) error {
if err := download(img, dest); err != nil {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we check here if the error is actually retryable?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not really sure if it's worth adding complexity here for a retry... it might just fail for downloading

@mudler mudler merged commit 4e56255 into master Sep 21, 2021
@mudler mudler deleted the relax_download branch September 21, 2021 14:26
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.

ci: Publish step times out
2 participants