Skip to content

Commit

Permalink
ATOR-249 - Improve interval logic
Browse files Browse the repository at this point in the history
  • Loading branch information
yumirkov committed Apr 25, 2024
1 parent 1023c27 commit c15b527
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ private void scheduleExecutions() {
final Runnable mainRunnable = this;
int period = Integer.parseInt(System.getProperty("updater.period.minutes", "60"));
int offset = Integer.parseInt(System.getProperty("updater.offset.minutes", "5"));

logger.info("Periodic updater will run every {} minutes with an offset of {} minutes", period, offset);
int currentMinute = Calendar.getInstance().get(Calendar.MINUTE);

int module = currentMinute % period;
Expand Down

0 comments on commit c15b527

Please sign in to comment.