标准预警推送 新增20s沉睡 避免 频繁死锁

This commit is contained in:
yuezhihang
2022-06-27 10:55:52 +08:00
parent b867799859
commit 8b2eb6b84a
@@ -133,6 +133,13 @@ public class ScheduledJob {
logger.info("========================================================================================================");
//删除不在预警范围的标准
int remove = sarStandardWarningDao.autoCancelWarning();
log.info("开始修整"+new Date()+"!");
try {
Thread.sleep(20000);
} catch (InterruptedException e) {
e.printStackTrace();
}
log.info("结束修整"+new Date()+"!");
logger.info("取消" + remove + "条预警");
//预警期限(当前日期至3个月后)