모델학습 1단계 실행중인 것이 있는지 count API

This commit is contained in:
2026-02-12 16:50:40 +09:00
parent 590810ff0a
commit 384a321bf3
6 changed files with 43 additions and 1 deletions

View File

@@ -27,6 +27,10 @@ public class ModelTrainMetricsJobService {
@Value("${spring.profiles.active}")
private String profile;
// 학습 결과가 저장될 호스트 디렉토리
@Value("${train.docker.responseDir}")
private String responseDir;
/**
* 실행중인 profile
*
@@ -51,7 +55,7 @@ public class ModelTrainMetricsJobService {
for (ResponsePathDto modelInfo : modelIds) {
String trainPath = modelInfo.getResponsePath() + "/metrics/train.csv";
String trainPath = responseDir + "{uuid}/metrics/train.csv"; // TODO
try (BufferedReader reader =
Files.newBufferedReader(Paths.get(trainPath), StandardCharsets.UTF_8); ) {