From 341be2a7214ac96e66817e229251d6e8b8b476e4 Mon Sep 17 00:00:00 2001 From: yang Date: Tue, 5 Nov 2024 03:12:40 +0900 Subject: [PATCH] =?UTF-8?q?RAC-451=20fix=20:=20=EB=B0=98=EB=B3=B5=EC=8B=9C?= =?UTF-8?q?=20=EC=9E=A0=EC=8B=9C=20=EB=8C=80=EA=B8=B0=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../postgraduate/batch/scheduler/JobSchedulerConfig.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main/java/com/postgraduate/batch/scheduler/JobSchedulerConfig.java b/src/main/java/com/postgraduate/batch/scheduler/JobSchedulerConfig.java index cd46d6b0..45404e7a 100644 --- a/src/main/java/com/postgraduate/batch/scheduler/JobSchedulerConfig.java +++ b/src/main/java/com/postgraduate/batch/scheduler/JobSchedulerConfig.java @@ -84,6 +84,12 @@ private void checkSalaryJobSuccess(JobParameters jobParameters) throws JobExecut success = true; break; } + try { + Thread.sleep(5000); + } catch (InterruptedException ex) { + Thread.currentThread().interrupt(); //스레드 상태 복원 + log.error("Thread Interrupt 발생"); + } jobLauncher.run(salaryJobWithAdmin, jobParameters); retries++; }