fix: 调整定时任务时间

dev
huangfeng 1 year ago
parent 3c5e31784a
commit 528cd67af9

@ -33,6 +33,7 @@ public class CacheTask {
modevType_Cache = null; modevType_Cache = null;
jg_Cache = null; jg_Cache = null;
zsb_Cache = null; zsb_Cache = null;
rule_Cache.clear();
} }

@ -30,7 +30,7 @@ public class I2syncTask {
@Resource @Resource
DataService dataService; DataService dataService;
@Scheduled(initialDelay = 60 * 1000, fixedDelay = 3600 * 1000) @Scheduled(initialDelay = 60 * 1000, fixedDelay = 30 * 60 * 1000)
public void syncAll() { public void syncAll() {
List<I2syncConfig> configList = i2syncService.listConfig(); List<I2syncConfig> configList = i2syncService.listConfig();
if (!CollectionUtils.isEmpty(configList)) { if (!CollectionUtils.isEmpty(configList)) {

@ -32,7 +32,7 @@ public class RuleCheckTask {
@Resource @Resource
DingTalkPushUtil dingTalkPushUtil; DingTalkPushUtil dingTalkPushUtil;
@Scheduled(initialDelay = 90 * 1000, fixedDelay = 60 * 1000) @Scheduled(initialDelay = 90 * 1000, fixedDelay = 3 * 60 * 1000)
private void checkAll() { private void checkAll() {
try { try {
for (WarnRule rule : CacheTask.rule_Cache.values()) { for (WarnRule rule : CacheTask.rule_Cache.values()) {

Loading…
Cancel
Save