diff --git a/.docker-compose/shell/server-handle.sh b/.docker-compose/shell/server-handle.sh deleted file mode 100644 index 46cec0fc..00000000 --- a/.docker-compose/shell/server-handle.sh +++ /dev/null @@ -1,88 +0,0 @@ -#! /bin/bash - -rm -f ./config.yaml -# 生成config.yaml文件, 用于docker-compose的使用 -touch ./config.yaml -filename="./config.yaml" -cat>"${filename}"< 三个月 + { tableName: "sys_operation_records" , compareField: "created_at", interval: "2160h" }, + #{ tableName: "log2" , compareField: "created_at", interval: "2160h" } + ] 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: 需要比较时间的字段