parent
aef400e67f
commit
83eef96c0f
|
|
@ -69,7 +69,6 @@ public class SchedulerCoreService {
|
||||||
|
|
||||||
// 1. cron 판단
|
// 1. cron 판단
|
||||||
if (!shouldRun(job.getSjcId(), job.getSjcCronExpression(), now)) {
|
if (!shouldRun(job.getSjcId(), job.getSjcCronExpression(), now)) {
|
||||||
System.out.println(job.getSjcJobCode() + " shouldRun is false");
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -77,7 +76,6 @@ public class SchedulerCoreService {
|
||||||
if (Boolean.TRUE.equals(job.getSjcEnabled())
|
if (Boolean.TRUE.equals(job.getSjcEnabled())
|
||||||
&& logService.isRunning(job.getSjcId())) {
|
&& logService.isRunning(job.getSjcId())) {
|
||||||
log.info("Job already running. jobCode={}", job.getSjcJobCode());
|
log.info("Job already running. jobCode={}", job.getSjcJobCode());
|
||||||
System.out.println("Job already running. jobCode=" + job.getSjcJobCode());
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -100,7 +98,6 @@ public class SchedulerCoreService {
|
||||||
|
|
||||||
// 5. worker 실행
|
// 5. worker 실행
|
||||||
try {
|
try {
|
||||||
System.out.println(job.getSjcJobCode() + " worker start");
|
|
||||||
executeWorker(job, from, to, runningLog);
|
executeWorker(job, from, to, runningLog);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
logService.markFailed(
|
logService.markFailed(
|
||||||
|
|
@ -151,7 +148,6 @@ public class SchedulerCoreService {
|
||||||
);
|
);
|
||||||
|
|
||||||
ScheduleWorkerResponseDto body = response.getBody();
|
ScheduleWorkerResponseDto body = response.getBody();
|
||||||
System.out.println("response: "+body);
|
|
||||||
if (body == null) {
|
if (body == null) {
|
||||||
throw new IllegalStateException("Worker response is null");
|
throw new IllegalStateException("Worker response is null");
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue