From f9c9b888eb7435619b1cc01d12d837255977425a Mon Sep 17 00:00:00 2001 From: ychao_1983 Date: Wed, 7 Dec 2022 17:46:13 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/cron/tasks_basic.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/cron/tasks_basic.go b/modules/cron/tasks_basic.go index 1813b1d50..6a1fc6e39 100755 --- a/modules/cron/tasks_basic.go +++ b/modules/cron/tasks_basic.go @@ -196,7 +196,7 @@ func registerHandleRepoAndUserStatistic() { func registerHandleClearCloudbrainResult() { RegisterTaskFatal("handle_cloudbrain_one_result_clear", &BaseConfig{ Enabled: true, - RunAtStart: false, + RunAtStart: setting.ClearStrategy.RunAtStart, Schedule: setting.ClearStrategy.Cron, }, func(ctx context.Context, _ *models.User, _ Config) error { cloudbrainService.ClearCloudbrainResultSpace()