Преглед изворни кода

Merge pull request #493 from qinmin328/master

定时任务配置问题
奇淼(piexlmax пре 3 година
родитељ
комит
4b8f0df987
1 измењених фајлова са 2 додато и 1 уклоњено
  1. 2 1
      server/config.yaml

+ 2 - 1
server/config.yaml

@@ -120,7 +120,8 @@ excel:
 
 # timer task db clear table
 Timer:
-  spec: "@daily"  # 定时任务详细配置参考 https://pkg.go.dev/github.com/robfig/cron?utm_source=godoc
+  start: true
+  spec: "@daily"  # 定时任务详细配置参考 https://pkg.go.dev/github.com/robfig/cron/v3
   detail: [
     # tableName: 需要清理的表名
     # compareField: 需要比较时间的字段