WIP: страницы для правил #62

Closed
Ghost wants to merge 132 commits from master into 61-rules-pages
Showing only changes of commit 28697b68aa - Show all commits

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("Завершение добавления новых точек временного ряда");
} }
} }