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());