From b76b7769a8d0cc32b737ecadca7cbdaddea7489e Mon Sep 17 00:00:00 2001 From: Mzaxd Date: Fri, 12 May 2023 07:53:49 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=82=AE=E4=BB=B6=E9=87=8D?= =?UTF-8?q?=E5=A4=8D=E5=8F=91=E9=80=81Bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pom.xml | 5 ----- .../java/com/mzaxd/noodles/job/CheckInstancesStatus.java | 3 +++ 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/pom.xml b/pom.xml index 1334620..465a263 100644 --- a/pom.xml +++ b/pom.xml @@ -149,11 +149,6 @@ spring-boot-admin-starter-client 2.7.8 - - - org.springframework.boot - spring-boot-starter-actuator - diff --git a/src/main/java/com/mzaxd/noodles/job/CheckInstancesStatus.java b/src/main/java/com/mzaxd/noodles/job/CheckInstancesStatus.java index a985f8d..31bd5da 100644 --- a/src/main/java/com/mzaxd/noodles/job/CheckInstancesStatus.java +++ b/src/main/java/com/mzaxd/noodles/job/CheckInstancesStatus.java @@ -108,6 +108,7 @@ public class CheckInstancesStatus { } if (container.getNotify().equals(SystemConstant.NOTIFY_EMAIL)) { notificationService.sendContainerOfflineEmail(container.getId()); + set.add(container.getId().toString()); } if (container.getNotify().equals(SystemConstant.NOTIFY_BROWSER_EMAIL)) { notificationService.sendContainerOfflineNotificationEmail(container.getId()); @@ -171,6 +172,7 @@ public class CheckInstancesStatus { } if (vm.getNotify().equals(SystemConstant.NOTIFY_EMAIL)) { notificationService.sendContainerOfflineEmail(vm.getId()); + set.add(vm.getId().toString()); } if (vm.getNotify().equals(SystemConstant.NOTIFY_BROWSER_EMAIL)) { notificationService.sendContainerOfflineNotificationEmail(vm.getId()); @@ -218,6 +220,7 @@ public class CheckInstancesStatus { } if (hostMachine.getNotify().equals(SystemConstant.NOTIFY_EMAIL)) { notificationService.sendContainerOfflineEmail(hostMachine.getId()); + set.add(hostMachine.getId().toString()); } if (hostMachine.getNotify().equals(SystemConstant.NOTIFY_BROWSER_EMAIL)) { notificationService.sendContainerOfflineNotificationEmail(hostMachine.getId());