Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
import org.springframework.batch.core.JobParameters;
import org.springframework.batch.core.JobParametersBuilder;
import org.springframework.batch.core.launch.JobLauncher;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

@Component
Expand All @@ -24,10 +23,11 @@ public class FeedbackKingJobScheduler {
private final Job feedbackKingRankingJob;

/**
* 랭킹 집계 배치 실행 트리거.
* 매주 월요일 02:00에 트리거하고, 마지막 월요일에만 잡을 실행한다.
* 랭킹 집계 배치 실행 트리거. 매주 월요일 02:00에 트리거하고, 마지막 월요일에만 잡을 실행한다.
* <p>
* TODO: 랭킹 오픈 후 스케줄러 주석 처리는 해제할 것
*/
@Scheduled(cron = "0 0 2 * * MON")
// @Scheduled(cron = "0 0 2 * * MON")
public void feedbackKingRankingJob() {
LocalDateTime executionDateTime = SystemTimeUtil.now();
if (!DateTimeUtil.isLastDayOfWeekAt(executionDateTime, DayOfWeek.MONDAY, 2)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
import org.springframework.batch.core.JobParametersBuilder;
import org.springframework.batch.core.launch.JobLauncher;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

@Component
Expand All @@ -27,10 +26,11 @@ public class GodsaengSilcheonreoRankingJobScheduler {
private final Job godsaengSilcheonreoRankingJob;

/**
* 갓생실천러 랭킹 집계 배치 실행 트리거.
* 매주 월요일 02:00에 트리거하고, 마지막 월요일에만 잡을 실행한다.
* 갓생실천러 랭킹 집계 배치 실행 트리거. 매주 월요일 02:00에 트리거하고, 마지막 월요일에만 잡을 실행한다.
* <p>
* TODO: 랭킹 오픈 후 스케줄러 주석 처리는 해제할 것
*/
@Scheduled(cron = "0 0 2 * * MON")
// @Scheduled(cron = "0 0 2 * * MON")
public void runGodsaengSilcheonreoRankingJob() {
LocalDateTime executionDateTime = SystemTimeUtil.now();
if (!DateTimeUtil.isLastDayOfWeekAt(executionDateTime, DayOfWeek.MONDAY, 2)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
import org.springframework.batch.core.JobParametersBuilder;
import org.springframework.batch.core.launch.JobLauncher;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

@Component
Expand All @@ -27,10 +26,11 @@ public class JaksimSamilerRankingJobScheduler {
private final Job jaksimSamilerRankingJob;

/**
* 작심삼일러 랭킹 집계 배치 실행 트리거.
* 매주 월요일 02:00에 트리거하고, 마지막 월요일에만 잡을 실행한다.
* 작심삼일러 랭킹 집계 배치 실행 트리거. 매주 월요일 02:00에 트리거하고, 마지막 월요일에만 잡을 실행한다.
* <p>
* TODO: 랭킹 오픈 후 스케줄러 주석 처리는 해제할 것
*/
@Scheduled(cron = "0 0 2 * * MON")
// @Scheduled(cron = "0 0 2 * * MON")
public void runJaksimSamilerRankingJob() {
LocalDateTime executionDateTime = SystemTimeUtil.now();
if (!DateTimeUtil.isLastDayOfWeekAt(executionDateTime, DayOfWeek.MONDAY, 2)) {
Expand Down