Skip to content

Commit

Permalink
Revert: 변동한 스케줄러 시각 복구
Browse files Browse the repository at this point in the history
  • Loading branch information
emes-g authored Aug 20, 2024
1 parent e301ad1 commit afaa598
Showing 1 changed file with 2 additions and 3 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 33 * * * *")
@Scheduled(cron = "0 0 * * * *")
public void performScheduledTasks() {
log.info("Starting scheduled tasks...");
if (isDailyTaskTime()) {
Expand All @@ -80,8 +80,7 @@ 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() == 13;
return now.getHour() == 19 && now.getMinute() == 0;
}

private boolean isMonday() {
Expand Down

0 comments on commit afaa598

Please sign in to comment.