Skip to content

Commit

Permalink
MATE-87 : [FIX] 크롤링 스케쥴러 테스트 주석 변경 (#79)
Browse files Browse the repository at this point in the history
  • Loading branch information
juchan204 authored Dec 4, 2024
1 parent 9b16776 commit e2ef97d
Showing 1 changed file with 14 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,18 +44,18 @@ public void eveningUpdate() {
}

// 매 분 실행 자동화 테스트 (현재 off-season )
@Scheduled(cron = "0 * * * * *", zone = "Asia/Seoul")
public void testScheduler() {
log.info("Test Scheduler is running!");
try {
// 현재 경기 크롤링
crawlingService.crawlAllCurrentMatches();
// 팀 순위 크롤링
crawlingService.crawlTeamRankings();
} catch (CustomException e) {
log.error("Evening update failed: {}", e.getErrorCode().getMessage(), e);
} catch (Exception e) {
log.error("Evening update failed with unexpected error", e);
}
}
// @Scheduled(cron = "0 * * * * *", zone = "Asia/Seoul")
// public void testScheduler() {
// log.info("Test Scheduler is running!");
// try {
// // 현재 경기 크롤링
// crawlingService.crawlAllCurrentMatches();
// // 팀 순위 크롤링
// crawlingService.crawlTeamRankings();
// } catch (CustomException e) {
// log.error("Evening update failed: {}", e.getErrorCode().getMessage(), e);
// } catch (Exception e) {
// log.error("Evening update failed with unexpected error", e);
// }
// }
}

0 comments on commit e2ef97d

Please sign in to comment.