From 190591c031965fca0d2f736d4560cb5ddb952284 Mon Sep 17 00:00:00 2001 From: Anton Romanov Date: Sun, 11 Nov 2018 01:31:27 +0400 Subject: [PATCH] fix scheduler --- src/main/java/ru/ulstu/timeline/service/EventScheduler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/ru/ulstu/timeline/service/EventScheduler.java b/src/main/java/ru/ulstu/timeline/service/EventScheduler.java index 958f20b..7a0bc66 100644 --- a/src/main/java/ru/ulstu/timeline/service/EventScheduler.java +++ b/src/main/java/ru/ulstu/timeline/service/EventScheduler.java @@ -37,7 +37,7 @@ public class EventScheduler { }); } - @Scheduled(cron = "0 */2 * * * ?") + @Scheduled(cron = "0 0 * * * ?") public void checkPeriodEvents() { log.debug("EventScheduler.checkPeriodEvents started"); for (Event event : eventService.findAllFuture()) {