From 28697b68aa4f7f52849753cd3a1239a9cec05b3b Mon Sep 17 00:00:00 2001 From: Anton Romanov Date: Fri, 12 May 2023 11:32:23 +0400 Subject: [PATCH] test ts add --- .../extractor/ts/service/ScheduledTimeSeriesService.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/ru/ulstu/extractor/ts/service/ScheduledTimeSeriesService.java b/src/main/java/ru/ulstu/extractor/ts/service/ScheduledTimeSeriesService.java index 501184a..fb41395 100644 --- a/src/main/java/ru/ulstu/extractor/ts/service/ScheduledTimeSeriesService.java +++ b/src/main/java/ru/ulstu/extractor/ts/service/ScheduledTimeSeriesService.java @@ -22,13 +22,13 @@ public class ScheduledTimeSeriesService { this.branchService = branchService; } - @Scheduled(cron = "0 0 8 * * *", zone = "Europe/Samara") + @Scheduled(cron = "0 */5 * * * *", zone = "Europe/Samara") public void addTimeSeriesPoints() { - log.debug("Старт добавления новых точек временного ряда"); + log.info("Старт добавления новых точек временного ряда"); List branches = branchService.findAll(); branches.forEach(branch -> { scheduledTimeSeriesCreators.forEach(creator -> creator.addTimeSeriesValue(branch)); }); - log.debug("Завершение добавления новых точек временного ряда"); + log.info("Завершение добавления новых точек временного ряда"); } }