Skip to content

Commit

Permalink
refactor: 스케쥴러 주석 제거
Browse files Browse the repository at this point in the history
  • Loading branch information
hgh1472 committed Dec 9, 2024
1 parent b46a6d8 commit 85303ef
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions src/main/java/postman/bottler/scheduler/SchedulerConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,18 @@ public class SchedulerConfig {
private final RecommendationScheduler recommendationScheduler;
private final UnbanScheduler unbanScheduler;

// @Scheduled(cron = "0 0 0 * * ?")
// public void unban() {
// unbanScheduler.unbanUsers(LocalDateTime.now());
// }
//
// @Scheduled(cron = "0 0 8,17,22 * * *")
// public void executeRecommendationJob() {
// recommendationScheduler.processAllUserRecommendations();
// }
//
// @Scheduled(cron = "0 0 9,18,23 * * ?")
// public void recommendKeywordLetter() {
// recommendationScheduler.updateAllRecommendations();
// }
@Scheduled(cron = "0 0 0 * * ?")
public void unban() {
unbanScheduler.unbanUsers(LocalDateTime.now());
}

@Scheduled(cron = "0 0 23,11,17 * * *")
public void executeRecommendationJob() {
recommendationScheduler.processAllUserRecommendations();
}

@Scheduled(cron = "0 0 0,12,18 * * ?")
public void recommendKeywordLetter() {
recommendationScheduler.updateAllRecommendations();
}
}

0 comments on commit 85303ef

Please sign in to comment.