Przeglądaj źródła

定时任务配置问题

定时任务文档跟使用版本不一致, 导致时间配置上有点差异
qinmin328 3 lat temu
rodzic
commit
442e95a60d
1 zmienionych plików z 2 dodań i 1 usunięć
  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: 需要比较时间的字段