[KC-108] ai api batch 작업중
This commit is contained in:
@@ -75,7 +75,13 @@ public class MapSheetInferenceJobService {
|
||||
if ("COMPLETED".equals(dto.getStatus())) {
|
||||
String type = batchSheet.getRunningModelType();
|
||||
|
||||
// if(type.equals("M3"))
|
||||
if (type.equals("M1")) {
|
||||
|
||||
} else if (type.equals("M2")) {
|
||||
|
||||
} else if (type.equals("M3")) {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
System.out.println(dto);
|
||||
@@ -89,4 +95,45 @@ public class MapSheetInferenceJobService {
|
||||
|
||||
log.info("1분 배치 종료");
|
||||
}
|
||||
|
||||
private void startInference(Long id, String type) {
|
||||
// InferenceResultDto.SaveInferenceAiDto req
|
||||
// inferenceResultCoreService.getInferenceResultByU
|
||||
//
|
||||
// List<MapSheetNumDto> mapSheetNum = req.getMapSheetNum();
|
||||
// List<String> mapSheetNumList = new ArrayList<>();
|
||||
//
|
||||
// for (MapSheetNumDto mapSheetDto : mapSheetNum) {
|
||||
// mapSheetNumList.add(mapSheetDto.getMapSheetNum());
|
||||
// }
|
||||
//
|
||||
// String modelComparePath =
|
||||
// this.getSceneInference(String.valueOf(req.getCompareYyyy()), mapSheetNumList);
|
||||
// String modelTargetPath =
|
||||
// this.getSceneInference(String.valueOf(req.getTargetYyyy()), mapSheetNumList);
|
||||
//
|
||||
// pred_requests_areas predRequestsAreas = new pred_requests_areas();
|
||||
// predRequestsAreas.setInput1_year(req.getCompareYyyy());
|
||||
// predRequestsAreas.setInput2_year(req.getTargetYyyy());
|
||||
// predRequestsAreas.setInput1_scene_path(modelComparePath);
|
||||
// predRequestsAreas.setInput2_scene_path(modelTargetPath);
|
||||
//
|
||||
// InferenceSendDto m1 = this.getModelInfo(req.getModel1Uuid());
|
||||
// InferenceSendDto m2 = this.getModelInfo(req.getModel2Uuid());
|
||||
// InferenceSendDto m3 = this.getModelInfo(req.getModel3Uuid());
|
||||
//
|
||||
// m1.setPred_requests_areas(predRequestsAreas);
|
||||
// m2.setPred_requests_areas(predRequestsAreas);
|
||||
// m3.setPred_requests_areas(predRequestsAreas);
|
||||
//
|
||||
// Long batchId = this.ensureAccepted(m1);
|
||||
//
|
||||
// SaveInferenceAiDto saveInferenceAiDto = new SaveInferenceAiDto();
|
||||
// saveInferenceAiDto.setUuid(uuid);
|
||||
// saveInferenceAiDto.setBatchId(batchId);
|
||||
// saveInferenceAiDto.setStatus(Status.IN_PROGRESS.getId());
|
||||
// saveInferenceAiDto.setType("M1");
|
||||
// saveInferenceAiDto.setInferStartDttm(ZonedDateTime.now());
|
||||
// inferenceResultCoreService.update(saveInferenceAiDto);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user