This commit is contained in:
crusader 2018-05-04 20:54:14 +09:00
parent c8b5d806b9
commit 5ece354a26

View File

@ -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);
}