Skip to content

Commit

Permalink
🚑️ Rollback scheduled time
Browse files Browse the repository at this point in the history
  • Loading branch information
baebae02 committed Sep 18, 2024
1 parent cc322c6 commit deecd0c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public class ProblemCrawlingScheduler {
private final ProblemScrapingService problemScraperService;
private final DiscordWebhookService discordWebhookService;

@Scheduled(cron = "0 10 16 * * WED") // 코스 변경 요청을 처리한 후, user problem을 할당합니다.
@Scheduled(cron = "0 55 23 * * TUE") // 코스 변경 요청을 처리한 후, user problem을 할당합니다.
public void scheduleAddProblemsForThisWeek() {
try {
String result = problemScraperService.addProblemsForThisWeek();
Expand Down
3 changes: 1 addition & 2 deletions src/main/java/com/aloc/aloc/scheduler/ProblemScheduler.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@ public class ProblemScheduler {
@Value("${app.vacation}")
private boolean isVacation;

// @Scheduled(cron = "0 0 0 * * *")
@Scheduled(cron = "0 20 16 * * *")
@Scheduled(cron = "0 0 0 * * *")
public void dailyScheduledTasks() {
if (isWednesday()) {
executeWednesdayTasks();
Expand Down

0 comments on commit deecd0c

Please sign in to comment.