aboutsummaryrefslogtreecommitdiffstats
path: root/pkg
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2019-04-01 14:16:54 +0200
committerDmitry Vyukov <dvyukov@google.com>2019-04-01 14:16:54 +0200
commit9e381a42d3a390c0e1f4935cdd41a59ffdd15b71 (patch)
tree052f9954569e3c76c2f2ac85f9fd2c6e61cc66a2 /pkg
parent162bd26be4e47d89f305435f7a1917b023138ed6 (diff)
pkg/gce: poll for operation completion less frequently
We are hitting quotas for operation completion polling. Not surprising since we create/delete instances all the time. Slightly decrease rate of polling.
Diffstat (limited to 'pkg')
-rw-r--r--pkg/gce/gce.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/pkg/gce/gce.go b/pkg/gce/gce.go
index e5194ae00..0ba0c50c0 100644
--- a/pkg/gce/gce.go
+++ b/pkg/gce/gce.go
@@ -266,8 +266,9 @@ func (err resourcePoolExhaustedError) Error() string {
}
func (ctx *Context) waitForCompletion(typ, desc, opName string, ignoreNotFound bool) error {
+ time.Sleep(3 * time.Second)
for {
- time.Sleep(2 * time.Second)
+ time.Sleep(3 * time.Second)
var op *compute.Operation
err := ctx.apiCall(func() (err error) {
switch typ {