Skip to content

Commit

Permalink
[feat] 스크립트 수정
Browse files Browse the repository at this point in the history
문제 사항 :
 - 배치 작업에서 ID 생성 관련 이슈 발생
  • Loading branch information
ghrltjdtprbs committed May 22, 2024
1 parent c094dab commit 13adab6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public BatchScheduler(JobLauncher jobLauncher, Job deleteOldReviewsJob, Job upda
this.updateResumeViewCountToDbJob = updateResumeViewCountToDbJob;
}

@Scheduled(cron = "0 10 14 * * *")
@Scheduled(cron = "0 10 15 * * *")
public void runDeleteOldReviewsJob() throws JobExecutionException {
jobLauncher.run(deleteOldReviewsJob, new JobParameters());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,4 +113,4 @@ CREATE TABLE BATCH_STEP_EXECUTION_SEQ
INSERT INTO BATCH_JOB_INSTANCE (JOB_NAME, JOB_KEY, VERSION) VALUES ('sampleJob', 'sampleKey', 1);

-- Insert sample data into BATCH_JOB_EXECUTION
INSERT INTO BATCH_JOB_EXECUTION (JOB_INSTANCE_ID, VERSION, CREATE_TIME) VALUES (1, 1, NOW());
INSERT INTO BATCH_JOB_EXECUTION (JOB_INSTANCE_ID, VERSION, CREATE_TIME) VALUES ((SELECT JOB_INSTANCE_ID FROM BATCH_JOB_INSTANCE WHERE JOB_NAME='sampleJob'), 1, NOW());

0 comments on commit 13adab6

Please sign in to comment.