test ts add

This commit is contained in:
Anton Romanov 2023-05-12 11:32:23 +04:00
parent 422864e489
commit 28697b68aa

View File

@ -22,13 +22,13 @@ public class ScheduledTimeSeriesService {
this.branchService = branchService; this.branchService = branchService;
} }
@Scheduled(cron = "0 0 8 * * *", zone = "Europe/Samara") @Scheduled(cron = "0 */5 * * * *", zone = "Europe/Samara")
public void addTimeSeriesPoints() { public void addTimeSeriesPoints() {
log.debug("Старт добавления новых точек временного ряда"); log.info("Старт добавления новых точек временного ряда");
List<Branch> branches = branchService.findAll(); List<Branch> branches = branchService.findAll();
branches.forEach(branch -> { branches.forEach(branch -> {
scheduledTimeSeriesCreators.forEach(creator -> creator.addTimeSeriesValue(branch)); scheduledTimeSeriesCreators.forEach(creator -> creator.addTimeSeriesValue(branch));
}); });
log.debug("Завершение добавления новых точек временного ряда"); log.info("Завершение добавления новых точек временного ряда");
} }
} }