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