Skip to content

Commit

Permalink
Merge pull request #66 from minseok1015/dev
Browse files Browse the repository at this point in the history
test : 15분마다 스케줄러 실행하도록 test
  • Loading branch information
minseok1015 authored Aug 10, 2024
2 parents a0ad9a5 + ad4c290 commit c3173e3
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ private <T> T executeWithRetries(Callable<T> action, String actionName) {


// 매 시간마다 실행하는 작업
@Scheduled(cron = "0 15 * * * *")
@Scheduled(cron = "0 0,15,30,45 * * * *")
public void performScheduledTasks() {
log.info("Starting scheduled tasks...");
if (isDailyTaskTime()) {
Expand All @@ -76,7 +76,8 @@ public void performScheduledTasks() {

private boolean isDailyTaskTime() {
LocalTime now = LocalTime.now();
return now.getHour() == 11 && now.getMinute() == 15;
// return now.getHour() == 11 && now.getMinute() == 15;
return now.getMinute() == 45;
}

private boolean isMonday() {
Expand Down

0 comments on commit c3173e3

Please sign in to comment.