Skip to content

Commit

Permalink
fix : 알림 스케줄러 주기 오전 00:01 마다 실행하도록 구현
Browse files Browse the repository at this point in the history
  • Loading branch information
LHS-11 committed Feb 18, 2024
1 parent 0a51089 commit 30aa707
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,7 @@ public class NotificationScheduler {
private final NotificationRepository notificationRepository;


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

0 comments on commit 30aa707

Please sign in to comment.