1 package hu.user.mcvodsync.service.schedule;
3 import lombok.SneakyThrows;
4 import lombok.extern.log4j.Log4j2;
5 import org.springframework.stereotype.Component;
7 import java.util.concurrent.ThreadLocalRandom;
11 //@ConditionalOnExpression("'${mc-vod-sync.scheduler.sunrise-checker}'=='true'")
12 public class ScheduledSunriseChacker implements Runnable {
19 log.info("Execute 3");
20 int randomNum = ThreadLocalRandom.current().nextInt(100, 2000);
21 Thread.sleep(randomNum);
24 } catch (Exception e) {