From b79061ca413af45918dfa5caf328f2c985248441 Mon Sep 17 00:00:00 2001 From: yangshihui <609752414@qq.com> Date: Fri, 8 Jul 2022 21:33:43 +0800 Subject: [PATCH] [manager] bugfix after repeatedly canceling the start monitoring, the monitoring is not really canceled (#215) --- .../java/com/usthe/manager/service/impl/MonitorServiceImpl.java | 1 + 1 file changed, 1 insertion(+) diff --git a/manager/src/main/java/com/usthe/manager/service/impl/MonitorServiceImpl.java b/manager/src/main/java/com/usthe/manager/service/impl/MonitorServiceImpl.java index 8803c869df3..c6d22990571 100644 --- a/manager/src/main/java/com/usthe/manager/service/impl/MonitorServiceImpl.java +++ b/manager/src/main/java/com/usthe/manager/service/impl/MonitorServiceImpl.java @@ -410,6 +410,7 @@ public void enableManageMonitors(HashSet ids) { // 构造采集任务Job实体 Job appDefine = appService.getAppDefine(monitor.getApp()); appDefine.setMonitorId(monitor.getId()); + appDefine.setId(monitor.getJobId()); appDefine.setInterval(monitor.getIntervals()); appDefine.setCyclic(true); appDefine.setTimestamp(System.currentTimeMillis());