Browse Source

Revert initial delay for saveCurrentSystemInfo

pull/9353/head
ViacheslavKlimov 3 years ago
committed by Andrii Shvaika
parent
commit
1a3d7bfab0
  1. 2
      application/src/main/java/org/thingsboard/server/service/system/DefaultSystemInfoService.java

2
application/src/main/java/org/thingsboard/server/service/system/DefaultSystemInfoService.java

@ -107,7 +107,7 @@ public class DefaultSystemInfoService extends TbApplicationEventListener<Partiti
if (myPartition) {
if (scheduler == null) {
scheduler = Executors.newSingleThreadScheduledExecutor(ThingsBoardThreadFactory.forName("tb-system-info-scheduler"));
scheduler.scheduleWithFixedDelay(this::saveCurrentSystemInfo, systemInfoPersistFrequencySeconds, systemInfoPersistFrequencySeconds, TimeUnit.SECONDS);
scheduler.scheduleWithFixedDelay(this::saveCurrentSystemInfo, 0, systemInfoPersistFrequencySeconds, TimeUnit.SECONDS);
}
} else {
destroy();

Loading…
Cancel
Save