From 9a11688999d916991fe545ea04908cbabcf85349 Mon Sep 17 00:00:00 2001 From: yang Date: Tue, 5 Nov 2024 02:58:43 +0900 Subject: [PATCH] =?UTF-8?q?RAC-451=20fix=20:=20=EC=A2=85=EB=A3=8C=EC=A1=B0?= =?UTF-8?q?=EA=B1=B4=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/postgraduate/batch/scheduler/JobSchedulerConfig.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/com/postgraduate/batch/scheduler/JobSchedulerConfig.java b/src/main/java/com/postgraduate/batch/scheduler/JobSchedulerConfig.java index 1b812b86..cd46d6b0 100644 --- a/src/main/java/com/postgraduate/batch/scheduler/JobSchedulerConfig.java +++ b/src/main/java/com/postgraduate/batch/scheduler/JobSchedulerConfig.java @@ -68,6 +68,7 @@ public void launchSalaryJobWithAdmin() throws JobInstanceAlreadyCompleteExceptio JobParameters jobParameters = new JobParametersBuilder() .addLocalDateTime("date", LocalDateTime.now()) .toJobParameters(); + jobLauncher.run(salaryJobWithAdmin, jobParameters); checkSalaryJobSuccess(jobParameters); } @@ -84,6 +85,7 @@ private void checkSalaryJobSuccess(JobParameters jobParameters) throws JobExecut break; } jobLauncher.run(salaryJobWithAdmin, jobParameters); + retries++; } if (!success) { slackErrorMessage.sendSlackSalaryError();