Skip to content

Commit

Permalink
test : 3분 주기로 알림 스케줄러 실행 구현
Browse files Browse the repository at this point in the history
  • Loading branch information
LHS-11 committed Feb 13, 2024
1 parent 7291a47 commit 5ca8652
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public class NotificationScheduler {


// @Scheduled(cron = "0 0 0 * * *") // 매일 오전 12시에 실행
@Scheduled(cron = "0 0/10 * 1/1 * ?")// 10분 주기로 실행
@Scheduled(cron = "0 0/3 * * * *")// 10분 주기로 실행
public void notifyUser() {
System.out.println("LocalDate.now() = " + LocalDate.now());
notifyUserBySttDate(LocalDate.now()); // 신청 시작일 기준
Expand Down

0 comments on commit 5ca8652

Please sign in to comment.