From 136aac66149d1450d84c92926e370b311c3eb7c3 Mon Sep 17 00:00:00 2001 From: maru Date: Thu, 18 Apr 2024 00:46:00 -0400 Subject: [PATCH] Sleep for one second in recordNewDaily task --- api/daily/common.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/api/daily/common.go b/api/daily/common.go index c5620d9..f20ab2c 100644 --- a/api/daily/common.go +++ b/api/daily/common.go @@ -52,6 +52,8 @@ func Init() error { log.Printf("Daily Run Seed: %s", Seed()) scheduler.AddFunc("@daily", func() { + time.Sleep(time.Second) + err := recordNewDaily() if err != nil { log.Printf("error while recording new daily: %s", err)