Merge remote-tracking branch 'origin/feat/infer_dev_260107' into feat/infer_dev_260107
# Conflicts: # src/main/java/com/kamco/cd/kamcoback/inference/dto/InferenceResultDto.java # src/main/java/com/kamco/cd/kamcoback/postgres/core/InferenceResultCoreService.java
This commit is contained in:
@@ -233,42 +233,34 @@ public class InferenceResultDto {
|
|||||||
|
|
||||||
public String getCpuStatus() {
|
public String getCpuStatus() {
|
||||||
String enumId = "SAFETY";
|
String enumId = "SAFETY";
|
||||||
if (this.cpu_user + this.cpu_system >= 80) {
|
if (this.cpu_user + this.cpu_system >= 80) enumId = "CAUTION";
|
||||||
enumId = "CAUTION";
|
|
||||||
}
|
|
||||||
return enumId;
|
return enumId;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getGpuStatus() {
|
public String getGpuStatus() {
|
||||||
String enumId = "SAFETY";
|
String enumId = "SAFETY";
|
||||||
if (this.gpuUtil >= 80) {
|
if (this.gpuUtil >= 80) enumId = "CAUTION";
|
||||||
enumId = "CAUTION";
|
|
||||||
}
|
|
||||||
return enumId;
|
return enumId;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getMemStatus() {
|
public String getMemStatus() {
|
||||||
String enumId = "SAFETY";
|
String enumId = "SAFETY";
|
||||||
if (this.memused >= 80) {
|
if (this.memused >= 80) enumId = "CAUTION";
|
||||||
enumId = "CAUTION";
|
|
||||||
}
|
|
||||||
return enumId;
|
return enumId;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getCpuStatusName() {
|
public String getCpuStatusName() {
|
||||||
if (this.cpu_user + this.cpu_system >= 80) {
|
if (this.cpu_user + this.cpu_system >= 80) return ServerStatus.CAUTION.getText();
|
||||||
return ServerStatus.CAUTION.getText();
|
|
||||||
}
|
|
||||||
return ServerStatus.SAFETY.getText();
|
return ServerStatus.SAFETY.getText();
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getGpuStatusName() {
|
public String getGpuStatusName() {
|
||||||
if (this.gpuUtil >= 80) {
|
if (this.gpuUtil >= 80) return ServerStatus.CAUTION.getText();
|
||||||
return ServerStatus.CAUTION.getText();
|
|
||||||
}
|
|
||||||
return ServerStatus.SAFETY.getText();
|
return ServerStatus.SAFETY.getText();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public String getMemStatusName() {
|
||||||
|
if (this.memused >= 80) return ServerStatus.CAUTION.getText();
|
||||||
public String getMemStatusName() {
|
public String getMemStatusName() {
|
||||||
if (this.memused >= 80) {
|
if (this.memused >= 80) {
|
||||||
return ServerStatus.CAUTION.getText();
|
return ServerStatus.CAUTION.getText();
|
||||||
|
|||||||
@@ -238,5 +238,7 @@ public class InferenceResultCoreService {
|
|||||||
.getInferenceResultByStatus(status)
|
.getInferenceResultByStatus(status)
|
||||||
.orElseThrow(() -> new EntityNotFoundException(status));
|
.orElseThrow(() -> new EntityNotFoundException(status));
|
||||||
return entity.getBatchId();
|
return entity.getBatchId();
|
||||||
|
public List<InferenceServerStatusDto> getInferenceServerStatusList() {
|
||||||
|
return mapSheetLearnRepository.getInferenceServerStatusList();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user