From 10caea0bbab01e5175096d4d59e9e2538fa72610 Mon Sep 17 00:00:00 2001 From: gsquared94 Date: Wed, 16 Jun 2021 15:07:05 +0530 Subject: [PATCH] fix: gcb api throttling retry backoff not implemented correctly --- pkg/skaffold/build/gcb/cloud_build.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/skaffold/build/gcb/cloud_build.go b/pkg/skaffold/build/gcb/cloud_build.go index 37fab52b249..1ae80ece729 100644 --- a/pkg/skaffold/build/gcb/cloud_build.go +++ b/pkg/skaffold/build/gcb/cloud_build.go @@ -151,7 +151,7 @@ watch: logrus.Debugf("current offset %d", offset) backoff := NewStatusBackoff() if waitErr := wait.Poll(backoff.Duration, RetryTimeout, func() (bool, error) { - backoff.Step() + time.Sleep(backoff.Step()) cb, err = cbclient.Projects.Builds.Get(projectID, remoteID).Do() if err == nil { return true, nil