Compare commits
3 Commits
c6e721aa37
...
190b93bee8
| Author | SHA1 | Date | |
|---|---|---|---|
| 190b93bee8 | |||
| c5f19cc961 | |||
| c56c0ca605 |
@@ -73,12 +73,12 @@ public class DockerTrainService {
|
|||||||
String line;
|
String line;
|
||||||
while ((line = br.readLine()) != null) {
|
while ((line = br.readLine()) != null) {
|
||||||
|
|
||||||
// 1) 원래 하던 로그 누적
|
// 1) 로그 누적
|
||||||
synchronized (logBuilder) {
|
synchronized (logBuilder) {
|
||||||
logBuilder.append(line).append('\n');
|
logBuilder.append(line).append('\n');
|
||||||
}
|
}
|
||||||
|
|
||||||
// 2) 🔥 epoch 감지 + DB 업데이트
|
// 2) epoch 감지 + DB 업데이트
|
||||||
Matcher m = epochPattern.matcher(line);
|
Matcher m = epochPattern.matcher(line);
|
||||||
if (m.find()) {
|
if (m.find()) {
|
||||||
int currentEpoch = Integer.parseInt(m.group(1));
|
int currentEpoch = Integer.parseInt(m.group(1));
|
||||||
@@ -87,6 +87,7 @@ public class DockerTrainService {
|
|||||||
log.info("[EPOCH] container={} {}/{}", containerName, currentEpoch, totalEpoch);
|
log.info("[EPOCH] container={} {}/{}", containerName, currentEpoch, totalEpoch);
|
||||||
|
|
||||||
// TODO 실행중인 에폭 저장 필요하면 만들어야함
|
// TODO 실행중인 에폭 저장 필요하면 만들어야함
|
||||||
|
// TODO 완료여부를 여기다가?
|
||||||
// modelTrainMngCoreService.updateCurrentEpoch(modelId,
|
// modelTrainMngCoreService.updateCurrentEpoch(modelId,
|
||||||
// currentEpoch, totalEpoch);
|
// currentEpoch, totalEpoch);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user