Skip to content

Commit

Permalink
Merge pull request #239 from kookmin-sw/feature/be/#232-cloud-front
Browse files Browse the repository at this point in the history
refactor: 메뉴 크롤링 수정
  • Loading branch information
BlueBerrySoda authored Jun 2, 2024
2 parents 576f8bb + 84cdf08 commit 9982ec0
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,10 @@ public boolean testKeyCheck(String key){
else throw new BusinessException(TEST_KEY_NOT_VALID);
}

@Scheduled(cron = "0 0 4 * * MON")
@Scheduled(cron = "0 0,7,14,21,28,35,42 4 * * MON")
public void crawlingMenus(){
LocalDate startDay = LocalDate.now();

for(int i=0; i<7; i++){
menuUpdateService.updateMenus(startDay.plusDays(i));
}
int i = LocalDateTime.now().getMinute() / 7;
menuUpdateService.updateMenus(startDay.plusDays(i));
}
}

0 comments on commit 9982ec0

Please sign in to comment.