[KC-108] ai api batch 작업중
This commit is contained in:
@@ -233,34 +233,42 @@ public class InferenceResultDto {
|
||||
|
||||
public String getCpuStatus() {
|
||||
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;
|
||||
}
|
||||
|
||||
public String getGpuStatus() {
|
||||
String enumId = "SAFETY";
|
||||
if (this.gpuUtil >= 80) enumId = "CAUTION";
|
||||
if (this.gpuUtil >= 80) {
|
||||
enumId = "CAUTION";
|
||||
}
|
||||
return enumId;
|
||||
}
|
||||
|
||||
public String getMemStatus() {
|
||||
String enumId = "SAFETY";
|
||||
if (this.memused >= 80) enumId = "CAUTION";
|
||||
if (this.memused >= 80) {
|
||||
enumId = "CAUTION";
|
||||
}
|
||||
return enumId;
|
||||
}
|
||||
|
||||
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();
|
||||
}
|
||||
|
||||
public String getGpuStatusName() {
|
||||
if (this.gpuUtil >= 80) return ServerStatus.CAUTION.getText();
|
||||
if (this.gpuUtil >= 80) {
|
||||
return ServerStatus.CAUTION.getText();
|
||||
}
|
||||
return ServerStatus.SAFETY.getText();
|
||||
}
|
||||
|
||||
public String getMemStatusName() {
|
||||
if (this.memused >= 80) return ServerStatus.CAUTION.getText();
|
||||
public String getMemStatusName() {
|
||||
if (this.memused >= 80) {
|
||||
return ServerStatus.CAUTION.getText();
|
||||
|
||||
@@ -238,7 +238,5 @@ public class InferenceResultCoreService {
|
||||
.getInferenceResultByStatus(status)
|
||||
.orElseThrow(() -> new EntityNotFoundException(status));
|
||||
return entity.getBatchId();
|
||||
public List<InferenceServerStatusDto> getInferenceServerStatusList() {
|
||||
return mapSheetLearnRepository.getInferenceServerStatusList();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user