From 9e381a42d3a390c0e1f4935cdd41a59ffdd15b71 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Mon, 1 Apr 2019 14:16:54 +0200 Subject: 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. --- pkg/gce/gce.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'pkg') 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 { -- cgit mrf-deployment