diff --git a/models/cloudbrain.go b/models/cloudbrain.go index 7b19c120d..c721e473c 100755 --- a/models/cloudbrain.go +++ b/models/cloudbrain.go @@ -2172,7 +2172,7 @@ func GetCloudBrainUnStoppedJob() ([]*Cloudbrain, error) { Find(&cloudbrains) } -func GetCloudBrainOneStoppedNotDebugJobDaysAgo(days int, limit int) ([]*Cloudbrain, error) { +func GetGPUStoppedNotDebugJobDaysAgo(days int, limit int) ([]*Cloudbrain, error) { cloudbrains := make([]*Cloudbrain, 0, 10) endTimeBefore := time.Now().Unix() - int64(days)*24*3600 missEndTimeBefore := endTimeBefore - 24*3600 @@ -2181,7 +2181,7 @@ func GetCloudBrainOneStoppedNotDebugJobDaysAgo(days int, limit int) ([]*Cloudbra JobStopped, JobSucceeded, JobFailed, ModelArtsCreateFailed, ModelArtsStartFailed, ModelArtsUnavailable, ModelArtsResizFailed, ModelArtsDeleted, ModelArtsStopped, ModelArtsTrainJobCanceled, ModelArtsTrainJobCheckFailed, ModelArtsTrainJobCompleted, ModelArtsTrainJobDeleteFailed, ModelArtsTrainJobDeployServiceFailed, ModelArtsTrainJobFailed, ModelArtsTrainJobImageFailed, ModelArtsTrainJobKilled, ModelArtsTrainJobLost, ModelArtsTrainJobSubmitFailed, ModelArtsTrainJobSubmitModelFailed). - Where("(((end_time is null or end_time=0) and updated_unix 0 && $("#" + versionname + "-startTime").text(timeFormat(new Date(data.StartTime * 1000))); $("#" + versionname + "-duration").text(data.JobDuration); $("#" + versionname + "-status").text(data.JobStatus); - $("#" + versionname + "-ai_center").text(data.AiCenter); + data.AiCenter != undefined && $("#" + versionname + "-ai_center").text(data.AiCenter); if (stopArray.includes(data.JobStatus)) { $("#" + versionname + "-stop").addClass("disabled");