[KC-108] ai api batch 작업중
This commit is contained in:
@@ -233,34 +233,42 @@ public class InferenceResultDto {
|
|||||||
|
|
||||||
public String getCpuStatus() {
|
public String getCpuStatus() {
|
||||||
String enumId = "SAFETY";
|
String enumId = "SAFETY";
|
||||||
if (this.cpu_user + this.cpu_system >= 80) enumId = "CAUTION";
|
if (this.cpu_user + this.cpu_system >= 80) {
|
||||||
|
enumId = "CAUTION";
|
||||||
|
}
|
||||||
return enumId;
|
return enumId;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getGpuStatus() {
|
public String getGpuStatus() {
|
||||||
String enumId = "SAFETY";
|
String enumId = "SAFETY";
|
||||||
if (this.gpuUtil >= 80) enumId = "CAUTION";
|
if (this.gpuUtil >= 80) {
|
||||||
|
enumId = "CAUTION";
|
||||||
|
}
|
||||||
return enumId;
|
return enumId;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getMemStatus() {
|
public String getMemStatus() {
|
||||||
String enumId = "SAFETY";
|
String enumId = "SAFETY";
|
||||||
if (this.memused >= 80) enumId = "CAUTION";
|
if (this.memused >= 80) {
|
||||||
|
enumId = "CAUTION";
|
||||||
|
}
|
||||||
return enumId;
|
return enumId;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getCpuStatusName() {
|
public String getCpuStatusName() {
|
||||||
if (this.cpu_user + this.cpu_system >= 80) return ServerStatus.CAUTION.getText();
|
if (this.cpu_user + this.cpu_system >= 80) {
|
||||||
|
return ServerStatus.CAUTION.getText();
|
||||||
|
}
|
||||||
return ServerStatus.SAFETY.getText();
|
return ServerStatus.SAFETY.getText();
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getGpuStatusName() {
|
public String getGpuStatusName() {
|
||||||
if (this.gpuUtil >= 80) return ServerStatus.CAUTION.getText();
|
if (this.gpuUtil >= 80) {
|
||||||
|
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,7 +238,5 @@ 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