From b646c5385d0a41c2f2e4a0b3cf52ce83dee118d5 Mon Sep 17 00:00:00 2001 From: ssongliu <73214554+ssongliu@users.noreply.github.com> Date: Thu, 13 Apr 2023 10:40:33 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=B0=83=E6=95=B4=E7=9B=91=E6=8E=A7?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E9=87=87=E9=9B=86=E9=97=B4=E9=9A=94=20(#607)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/cron/cron.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/cron/cron.go b/backend/cron/cron.go index 6d65ddd6a..0fe21b1f2 100644 --- a/backend/cron/cron.go +++ b/backend/cron/cron.go @@ -15,7 +15,7 @@ import ( func Run() { nyc, _ := time.LoadLocation("Asia/Shanghai") Cron := cron.New(cron.WithLocation(nyc), cron.WithChain(cron.Recover(cron.DefaultLogger)), cron.WithChain(cron.DelayIfStillRunning(cron.DefaultLogger))) - _, err := Cron.AddJob("@every 1m", job.NewMonitorJob()) + _, err := Cron.AddJob("@every 5m", job.NewMonitorJob()) if err != nil { global.LOG.Errorf("can not add monitor corn job: %s", err.Error()) }