Skip to content

Commit

Permalink
fix: gcb api throttling retry backoff not implemented correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
gsquared94 committed Jun 16, 2021
1 parent f76873c commit 10caea0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/skaffold/build/gcb/cloud_build.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 10caea0

Please sign in to comment.