Skip to content

Commit

Permalink
Merge pull request #326 from WE-ARE-RACCOONS/develop
Browse files Browse the repository at this point in the history
운영 반영
  • Loading branch information
ywj9811 authored Nov 13, 2024
2 parents bd38e19 + 45024f4 commit 19571c5
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,18 +61,18 @@ public void launchSalaryJob() throws JobInstanceAlreadyCompleteException, JobExe
.addLocalDateTime("date", LocalDateTime.now())
.toJobParameters();
jobLauncher.run(salaryJob, jobParameters);
checkSalaryJobSuccess(jobParameters);
checkSalaryJobSuccess();
}

public void launchSalaryJobWithAdmin() throws JobInstanceAlreadyCompleteException, JobExecutionAlreadyRunningException, JobParametersInvalidException, JobRestartException {
JobParameters jobParameters = new JobParametersBuilder()
.addLocalDateTime("date", LocalDateTime.now())
.toJobParameters();
jobLauncher.run(salaryJobWithAdmin, jobParameters);
checkSalaryJobSuccess(jobParameters);
checkSalaryJobSuccess();
}

private void checkSalaryJobSuccess(JobParameters jobParameters) throws JobExecutionAlreadyRunningException, JobRestartException, JobInstanceAlreadyCompleteException, JobParametersInvalidException {
private void checkSalaryJobSuccess() throws JobExecutionAlreadyRunningException, JobRestartException, JobInstanceAlreadyCompleteException, JobParametersInvalidException {
int retries = 0;
boolean success = false;
int seniorSize = seniorGetService.allSeniorId()
Expand All @@ -90,6 +90,9 @@ private void checkSalaryJobSuccess(JobParameters jobParameters) throws JobExecut
Thread.currentThread().interrupt(); //μŠ€λ ˆλ“œ μƒνƒœ 볡원
log.error("Thread Interrupt λ°œμƒ");
}
JobParameters jobParameters = new JobParametersBuilder()
.addLocalDateTime("date", LocalDateTime.now())
.toJobParameters();
jobLauncher.run(salaryJobWithAdmin, jobParameters);
retries++;
}
Expand Down

0 comments on commit 19571c5

Please sign in to comment.