From 42398b8fe6d1744e9a7a5c3ce8039c49ffbcc5ad Mon Sep 17 00:00:00 2001 From: Nicolas Bigler Date: Tue, 19 Dec 2023 11:07:40 +0100 Subject: [PATCH] f Signed-off-by: Nicolas Bigler --- pkg/cmd/cloudscale.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pkg/cmd/cloudscale.go b/pkg/cmd/cloudscale.go index fc7ec33..56c2eb7 100644 --- a/pkg/cmd/cloudscale.go +++ b/pkg/cmd/cloudscale.go @@ -135,6 +135,7 @@ func CloudscaleCmds() *cli.Command { if len(metrics) == 0 { logger.Info("No data to export to odoo", "date", billingDate) + time.Sleep(time.Hour) continue } @@ -143,9 +144,9 @@ func CloudscaleCmds() *cli.Command { if err != nil { logger.Error(err, "could not export cloudscale bucket metrics") } + time.Sleep(time.Hour * time.Duration(collectInterval)) } - - time.Sleep(time.Hour * time.Duration(collectInterval)) + time.Sleep(time.Hour) } }() wg.Wait()