Merge pull request 'flush 추가해보기' (#96) from feat/training_260202 into develop

Reviewed-on: #96
This commit was merged in pull request #96.
This commit is contained in:
2026-02-13 12:47:11 +09:00
2 changed files with 3 additions and 0 deletions

View File

@@ -45,6 +45,7 @@ public class ModelTrainJobCoreService {
job.setQueuedDttm(queuedDttm != null ? queuedDttm : ZonedDateTime.now());
modelTrainJobRepository.save(job);
modelTrainJobRepository.flush();
return job.getId();
}

View File

@@ -312,6 +312,7 @@ public class ModelTrainMngCoreService {
master.setCurrentAttemptId(jobId);
// 필요하면 시작시간도 여기서 찍어줌
modelMngRepository.flush();
}
/** 마지막 에러 메시지 초기화 - 재시작/새 실행 때 이전 에러 흔적 제거 */
@@ -323,6 +324,7 @@ public class ModelTrainMngCoreService {
.orElseThrow(() -> new IllegalArgumentException("Model not found: " + modelId));
master.setLastError(null);
modelMngRepository.flush();
}
/** 중단 처리(옵션) - cancel에서 쓰려고 하면 같이 구현 */