Skip to content

Commit

Permalink
test : 11시 15분에 18시 작업 테스트
Browse files Browse the repository at this point in the history
  • Loading branch information
minseok1015 committed Aug 10, 2024
1 parent c4a9ddf commit 043f890
Showing 1 changed file with 2 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 0 * * * *")
@Scheduled(cron = "0 15 * * * *")
public void performScheduledTasks() {
log.info("Starting scheduled tasks...");
if (isDailyTaskTime()) {
Expand All @@ -76,7 +76,7 @@ public void performScheduledTasks() {

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

private boolean isMonday() {
Expand Down

0 comments on commit 043f890

Please sign in to comment.