[KC-103] 추론 실행 배치 수정

This commit is contained in:
2026-01-13 15:52:45 +09:00
parent 8b212504d4
commit 539ee50371
2 changed files with 4 additions and 3 deletions

View File

@@ -64,7 +64,7 @@ public class MapSheetMngFileJobApiController {
@ApiResponse(responseCode = "500", description = "서버 오류", content = @Content)
})
public ApiResponseDto<String> inferenceRunBatch() {
mapSheetInferenceJobService.runBatch();
// mapSheetInferenceJobService.runBatch();
return ApiResponseDto.createOK("OK");
}
}

View File

@@ -26,6 +26,7 @@ import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpMethod;
import org.springframework.http.HttpStatus;
import org.springframework.http.MediaType;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Service;
@Log4j2
@@ -48,12 +49,12 @@ public class MapSheetInferenceJobService {
private String inferenceUrl;
/** 추론 진행 배치 1분 */
// @Scheduled(fixedDelay = 60_000)
@Scheduled(fixedDelay = 60_000)
@Transactional
public void runBatch() {
if ("local".equalsIgnoreCase(profile)) {
// return;
return;
}
try {