Skip to content

Commit

Permalink
#45 [Add] ShedLock 오류 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
JSoi committed Jul 31, 2022
1 parent e922f71 commit a31e29b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ public StorePagedResponseDto searchStores(String sido, String sigungu, String ke
}

@Scheduled(cron = "0 0 0-23 * * *") // 1시간에 한 번
@SchedulerLock(name = "updateScheduler", lockAtLeastFor = "PT58M", lockAtMostFor = "PT30M")
@SchedulerLock(name = "updateScheduler", lockAtLeastFor = "PT30M", lockAtMostFor = "PT58M")
public void updateSchedule() {
log.info("AVG, BOOKMARK COUNT SCHEDULING");
List<Store> storeList = storeRepository.findAll();
Expand Down

0 comments on commit a31e29b

Please sign in to comment.