[KC-108] ai api 실행

This commit is contained in:
2026-01-12 19:28:33 +09:00
parent 546981076c
commit f61ff5077d
6 changed files with 90 additions and 7 deletions

View File

@@ -0,0 +1,30 @@
package com.kamco.cd.kamcoback.scheduler.service;
import com.kamco.cd.kamcoback.postgres.core.InferenceResultCoreService;
import lombok.RequiredArgsConstructor;
import lombok.extern.log4j.Log4j2;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Service;
@Log4j2
@Service
@RequiredArgsConstructor
public class MapSheetInferenceJobService {
private final InferenceResultCoreService inferenceResultCoreService;
@Scheduled(fixedDelay = 60_000)
public void runBatch() {
log.info("1분 배치 시작");
try {
// TODO: 배치 로직 작성
Thread.sleep(3000); // 예시: 처리 시간 3초
} catch (InterruptedException e) {
Thread.currentThread().interrupt();
log.error("배치 중 인터럽트 발생", e);
}
log.info("1분 배치 종료");
}
}