Skip to content

Commit

Permalink
Temp: 스케줄러 시간 일시 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
emes-g authored Aug 20, 2024
1 parent 9cf713e commit e301ad1
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ private <T> T executeWithRetries(Callable<T> action, String actionName) {

// 매 시간마다 실행하는 작업
@Transactional
@Scheduled(cron = "0 0 * * * *")
@Scheduled(cron = "0 33 * * * *")
public void performScheduledTasks() {
log.info("Starting scheduled tasks...");
if (isDailyTaskTime()) {
Expand All @@ -80,7 +80,8 @@ public void performScheduledTasks() {
private boolean isDailyTaskTime() {
LocalTime now = LocalTime.now();
System.out.println("현재 시각 :"+now.getHour()+" 현재 분 : "+now.getMinute());
return now.getHour() == 19 && now.getMinute() == 0;
// return now.getHour() == 19 && now.getMinute() == 0;
return now.getHour() == 13;
}

private boolean isMonday() {
Expand Down

0 comments on commit e301ad1

Please sign in to comment.