|
|
@@ -769,12 +769,6 @@ func Cloudbrains(ctx *context.Context) { |
|
|
|
if page <= 0 { |
|
|
|
page = 1 |
|
|
|
} |
|
|
|
debugType := models.TypeCloudBrainAll |
|
|
|
if listType == models.GPUResource { |
|
|
|
debugType = models.TypeCloudBrainOne |
|
|
|
} else if listType == models.NPUResource { |
|
|
|
debugType = models.TypeCloudBrainTwo |
|
|
|
} |
|
|
|
|
|
|
|
var jobTypes []string |
|
|
|
jobTypeNot := false |
|
|
@@ -821,7 +815,6 @@ func Cloudbrains(ctx *context.Context) { |
|
|
|
}, |
|
|
|
Keyword: keyword, |
|
|
|
UserID: ctxUser.ID, |
|
|
|
Type: debugType, |
|
|
|
JobTypeNot: jobTypeNot, |
|
|
|
JobStatusNot: jobStatusNot, |
|
|
|
JobStatus: jobStatuses, |
|
|
@@ -829,6 +822,8 @@ func Cloudbrains(ctx *context.Context) { |
|
|
|
NeedRepoInfo: true, |
|
|
|
IsLatestVersion: modelarts.IsLatestVersion, |
|
|
|
RepoIDList: repoIDList, |
|
|
|
ComputeResource: listType, |
|
|
|
Type: models.TypeCloudBrainAll, |
|
|
|
}) |
|
|
|
if err != nil { |
|
|
|
ctx.ServerError("Get job failed:", err) |
|
|
|