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 1/2] =?UTF-8?q?=E5=AE=9A=E6=97=B6=E4=BB=BB=E5=8A=A1?= =?UTF-8?q?=E9=85=8D=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: 需要比较时间的字段 From 087658fb185f9c3df016002afa35e69613b9d79c Mon Sep 17 00:00:00 2001 From: SliverHorn Date: Thu, 3 Jun 2021 11:44:26 +0800 Subject: [PATCH 2/2] =?UTF-8?q?fix:=20docker-compose=20=E4=BE=9D=E8=B5=96s?= =?UTF-8?q?h=E5=91=BD=E4=BB=A4=E5=90=AF=E5=8A=A8=20windows=E5=90=AF?= =?UTF-8?q?=E5=8A=A8=E5=A4=B1=E8=B4=A5=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .docker-compose/shell/server-handle.sh | 88 ----------------- dockerfile_server | 11 +-- server/config.docker.yaml | 132 +++++++++++++++++++++++++ 3 files changed, 134 insertions(+), 97 deletions(-) delete mode 100644 .docker-compose/shell/server-handle.sh create mode 100644 server/config.docker.yaml 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" } + ]