Skip to content

Commit 1dff8eb

Browse files
authored
定时任务配置问题
定时任务文档跟使用版本不一致, 导致时间配置上有点差异
1 parent 8f1885f commit 1dff8eb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

server/config.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,8 @@ excel:
120120

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

0 commit comments

Comments
 (0)