Skip to content

Commit

Permalink
Merge pull request #74 from minseok1015/dev
Browse files Browse the repository at this point in the history
test : 5분마다로 변경
  • Loading branch information
minseok1015 authored Aug 12, 2024
2 parents 8824d73 + 1e30dc7 commit eba4c00
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ private <T> T executeWithRetries(Callable<T> action, String actionName) {

// 매 시간마다 실행하는 작업
@Transactional
@Scheduled(cron = "0 0,15,20,30,45 * * * *")
@Scheduled(cron = "0 0,5,10,15,20,25,30,35,40,45,50,55 * * * *")
public void performScheduledTasks() {
log.info("Starting scheduled tasks...");
if (isDailyTaskTime()) {
Expand All @@ -78,7 +78,7 @@ public void performScheduledTasks() {
private boolean isDailyTaskTime() {
LocalTime now = LocalTime.now();
// return now.getHour() == 11 && now.getMinute() == 15;
return now.getMinute() == 15;
return now.getMinute() == 0 ||now.getMinute() == 10 ||now.getMinute() == 20 ||now.getMinute() == 30 ||now.getMinute() == 40 ||now.getMinute() == 50;
}

private boolean isMonday() {
Expand Down

0 comments on commit eba4c00

Please sign in to comment.