|
|
|
@@ -121,6 +121,13 @@ func GetAllCloudbrainsOverview(ctx *context.Context) { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
cloudBrainTypeList := []int{0, 1, 2} |
|
|
|
for _, v := range cloudBrainTypeList { |
|
|
|
if _, ok := cloudBrainNum[v]; !ok { |
|
|
|
cloudBrainNum[v] = 0 |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
todayRunningCount := todayStatusResult[string(models.JobRunning)] |
|
|
|
todayCompletedCount := todayStatusResult[string(models.ModelArtsTrainJobCompleted)] + todayStatusResult[string(models.JobFailed)] + |
|
|
|
todayStatusResult[string(models.ModelArtsStartFailed)] + todayStatusResult[string(models.JobStopped)] + todayStatusResult[string(models.JobSucceeded)] + todayStatusResult[string(models.ModelArtsTrainJobKilled)] |
|
|
|
|