diff --git a/hotspot-clear-job-master.yaml b/hotspot-clear-job-master.yaml index 25467f2..407bf7b 100644 --- a/hotspot-clear-job-master.yaml +++ b/hotspot-clear-job-master.yaml @@ -4,7 +4,7 @@ metadata: name: hotspot-clear-job namespace: master spec: - schedule: "*/1 * * * *" # 10分钟 + schedule: "*/10 * * * *" # 10分钟 # schedule: "0 * * * *" # 一小时 successfulJobsHistoryLimit: 3 failedJobsHistoryLimit: 1 @@ -14,7 +14,7 @@ spec: spec: containers: - name: hotspot-clear - image: 192.168.0.19:5000/job/master/hotspot-clear:bc69c493d2e25b8a3507aa450e9b27d97e2310a3 + image: 192.168.0.19:5000/job/master/hotspot-clear:77828635aff0ab0eb0992c381e668db2f29fd979 imagePullPolicy: Always env: - name: JM_ENVIRONMENT diff --git a/task/task.go b/task/task.go index 09eec5e..92f6c09 100644 --- a/task/task.go +++ b/task/task.go @@ -100,9 +100,9 @@ func task(start, end int64) error { } func wechatHook(times int64, err error) { - envi := "测试11" + envi := "测试" if k8sclient.Environment() == k8sclient.MasterNamespace { - envi = "正式11" + envi = "正式" } hook := wechat.NewMarkdown("https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=00dd9216-1f50-42be-8fe1-e66640d7bb27"). Title(1, "直播间热度清理").Br().