From 5ece354a266ee475416f705027e08ed40a04a85b Mon Sep 17 00:00:00 2001 From: crusader Date: Fri, 4 May 2018 20:54:14 +0900 Subject: [PATCH] ing --- .../overflow/container/service/ContainerCollectorService.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/com/loafle/overflow/container/service/ContainerCollectorService.java b/src/main/java/com/loafle/overflow/container/service/ContainerCollectorService.java index 387b1d9..e3d2be7 100644 --- a/src/main/java/com/loafle/overflow/container/service/ContainerCollectorService.java +++ b/src/main/java/com/loafle/overflow/container/service/ContainerCollectorService.java @@ -87,6 +87,7 @@ public class ContainerCollectorService implements CollectorService { logger.error("Cannot get data from crawler[%s] %s", sensorConfig.getCrawler().getName(), e.getMessage()); } }; + this.removeSchedule(sensorConfig.getConfigID()); ScheduledFuture sf = this.scheduledExecutorService.scheduleWithFixedDelay(task, 0, interval, TimeUnit.SECONDS); this.scheduleMap.put(sensorConfig.getConfigID(), sf); }