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()