Merge pull request 'ing-cnt 로직에 step2도 추가, transactional' (#123) from feat/training_260202 into develop
Reviewed-on: #123
This commit was merged in pull request #123.
This commit is contained in:
@@ -155,7 +155,9 @@ public class ModelTrainMngApiController {
|
|||||||
return ApiResponseDto.ok(modelTrainMngService.getDatasetSelectList(req));
|
return ApiResponseDto.ok(modelTrainMngService.getDatasetSelectList(req));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Operation(summary = "모델학습 1단계 실행중인 것이 있는지 count", description = "모델학습 1단계 실행중인 것이 있는지 count")
|
@Operation(
|
||||||
|
summary = "모델학습 1단계/2단계 실행중인 것이 있는지 count",
|
||||||
|
description = "모델학습 1단계/2단계 실행중인 것이 있는지 count")
|
||||||
@ApiResponses(
|
@ApiResponses(
|
||||||
value = {
|
value = {
|
||||||
@ApiResponse(
|
@ApiResponse(
|
||||||
|
|||||||
@@ -38,10 +38,12 @@ public class ModelTestMetricsJobCoreService {
|
|||||||
return modelTestMetricsJobRepository.findModelTestFileNames(modelId);
|
return modelTestMetricsJobRepository.findModelTestFileNames(modelId);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Transactional
|
||||||
public void updatePackingStart(Long modelId, ZonedDateTime now) {
|
public void updatePackingStart(Long modelId, ZonedDateTime now) {
|
||||||
modelTestMetricsJobRepository.updatePackingStart(modelId, now);
|
modelTestMetricsJobRepository.updatePackingStart(modelId, now);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Transactional
|
||||||
public void updatePackingEnd(Long modelId, ZonedDateTime now, String failSuccState) {
|
public void updatePackingEnd(Long modelId, ZonedDateTime now, String failSuccState) {
|
||||||
modelTestMetricsJobRepository.updatePackingEnd(modelId, now, failSuccState);
|
modelTestMetricsJobRepository.updatePackingEnd(modelId, now, failSuccState);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -191,7 +191,11 @@ public class ModelMngRepositoryImpl implements ModelMngRepositoryCustom {
|
|||||||
return queryFactory
|
return queryFactory
|
||||||
.select(modelMasterEntity.id.count())
|
.select(modelMasterEntity.id.count())
|
||||||
.from(modelMasterEntity)
|
.from(modelMasterEntity)
|
||||||
.where(modelMasterEntity.step1State.eq(TrainStatusType.IN_PROGRESS.getId()))
|
.where(
|
||||||
|
modelMasterEntity
|
||||||
|
.step1State
|
||||||
|
.eq(TrainStatusType.IN_PROGRESS.getId())
|
||||||
|
.or(modelMasterEntity.step2State.eq(TrainStatusType.IN_PROGRESS.getId())))
|
||||||
.fetchOne();
|
.fetchOne();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user