From 442e95a60dd213b00792968fa1ee856382280a8d Mon Sep 17 00:00:00 2001 From: qinmin328 <30969138+qinmin328@users.noreply.github.com> Date: Tue, 25 May 2021 09:50:54 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=9A=E6=97=B6=E4=BB=BB=E5=8A=A1=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 定时任务文档跟使用版本不一致, 导致时间配置上有点差异 --- server/config.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/config.yaml b/server/config.yaml index fb77272f..00be24cb 100644 --- a/server/config.yaml +++ b/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: 需要比较时间的字段