diff --git a/cmd/config.yaml b/cmd/config.yaml index 23837ad..1e3f539 100644 --- a/cmd/config.yaml +++ b/cmd/config.yaml @@ -31,5 +31,5 @@ policy: # the 'trigger.cron' empty trigger: # Cron expression to trigger the cleanup, for example "0 0 * * *", leave it empty will disable the - # trigger and fallback to run cleanup once. + # trigger and fallback to run cleanup once. Note: you may need to quote the cron expression with double quote cron: diff --git a/pkg/trigger/cron.go b/pkg/trigger/cron.go index 953b4d2..6cd2666 100644 --- a/pkg/trigger/cron.go +++ b/pkg/trigger/cron.go @@ -49,7 +49,6 @@ func (s *cronScheduler) Submit(task func()) { }() logrus.Info("Start to run cleanup task") - time.Sleep(time.Minute) task() }) }