test ts add
This commit is contained in:
parent
422864e489
commit
28697b68aa
@ -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("Завершение добавления новых точек временного ряда");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user