From 2153a8f20e258117bd626cc94be8aa90c819ba80 Mon Sep 17 00:00:00 2001 From: wadema Date: Thu, 16 Sep 2021 16:02:31 +0800 Subject: [PATCH] =?UTF-8?q?feature:=20=E5=BC=82=E5=B8=B8=E9=80=9A=E7=9F=A5?= =?UTF-8?q?=E7=9A=84=E6=94=B6=E6=95=9B/=E6=8A=91=E5=88=B6=E8=83=BD?= =?UTF-8?q?=E5=8A=9B=20#205?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/resources/application.yml | 11 ----------- .../src/test/resources/application-test.yml | 10 +++++----- 2 files changed, 5 insertions(+), 16 deletions(-) diff --git a/src/backend/job-crontab/boot-job-crontab/src/main/resources/application.yml b/src/backend/job-crontab/boot-job-crontab/src/main/resources/application.yml index 49a4f3106a..0dba5e03dd 100644 --- a/src/backend/job-crontab/boot-job-crontab/src/main/resources/application.yml +++ b/src/backend/job-crontab/boot-job-crontab/src/main/resources/application.yml @@ -81,14 +81,3 @@ job: service: private-key-base64: ${job.security.private-key-base64} public-key-base64: ${job.security.public-key-base64} - -notification-policy: - failed: - #连续启动失败通知策略:默认 连续失败只通知第一次 begin = 1;frequency = 1;totalTimes = 1 - start: - #通知开始:默认 1 - 从第一次失败开始通知 - begin: 1 - #通知频率:默认 1 - 每次通知,2 - 每2次通知 - frequency: 1 - #通知次数:默认 1 - 只通知1次,0 - 不通知,-1 - 不限制通知次数 - totalTimes: 1 \ No newline at end of file diff --git a/src/backend/job-crontab/boot-job-crontab/src/test/resources/application-test.yml b/src/backend/job-crontab/boot-job-crontab/src/test/resources/application-test.yml index 0d01bcd812..18cc764573 100644 --- a/src/backend/job-crontab/boot-job-crontab/src/test/resources/application-test.yml +++ b/src/backend/job-crontab/boot-job-crontab/src/test/resources/application-test.yml @@ -40,11 +40,11 @@ job: notification-policy: failed: - #连续启动失败通知策略:默认 连续失败只通知第一次 begin = 1;frequency = 1;totalTimes = 1 + #连续启动失败通知策略:默认 从第一次失败开始,连续失败每5次通知第一次 begin = 1;frequency = 5;totalTimes = -1 start: #通知开始:默认 1 - 从第一次失败开始通知 begin: 1 - #通知频率:默认 1 - 每次通知,2 - 每2次通知 - frequency: 1 - #通知次数:默认 1 - 只通知1次,0 - 不通知,-1 - 不限制通知次数 - totalTimes: 1 \ No newline at end of file + #通知频率:默认 5 - 每5次通知, 1 - 每次通知 + frequency: 5 + #通知次数:默认 -1 - 不限制通知次数, 0 - 不通知, 1 - 只通知1次, + totalTimes: -1 \ No newline at end of file