feat/training_260202 #79

Merged
gina merged 2 commits from feat/training_260202 into develop 2026-02-12 22:26:26 +09:00
Showing only changes of commit 4f94c99b64 - Show all commits

View File

@@ -6,6 +6,7 @@ import com.kamco.cd.training.model.dto.ModelTrainMngDto;
import com.kamco.cd.training.model.service.TmpDatasetService; import com.kamco.cd.training.model.service.TmpDatasetService;
import com.kamco.cd.training.postgres.core.ModelTrainJobCoreService; import com.kamco.cd.training.postgres.core.ModelTrainJobCoreService;
import com.kamco.cd.training.postgres.core.ModelTrainMngCoreService; import com.kamco.cd.training.postgres.core.ModelTrainMngCoreService;
import com.kamco.cd.training.train.dto.ModelTrainJobDto;
import com.kamco.cd.training.train.dto.ModelTrainJobQueuedEvent; import com.kamco.cd.training.train.dto.ModelTrainJobQueuedEvent;
import com.kamco.cd.training.train.dto.TrainRunRequest; import com.kamco.cd.training.train.dto.TrainRunRequest;
import java.io.IOException; import java.io.IOException;
@@ -139,7 +140,7 @@ public class TrainJobService {
throw new IllegalStateException("이미 진행중입니다."); throw new IllegalStateException("이미 진행중입니다.");
} }
var lastJob = ModelTrainJobDto lastJob =
modelTrainJobCoreService modelTrainJobCoreService
.findLatestByModelId(modelId) .findLatestByModelId(modelId)
.orElseThrow(() -> new IllegalStateException("이전 실행 이력이 없습니다.")); .orElseThrow(() -> new IllegalStateException("이전 실행 이력이 없습니다."));