Browse Source

提交代码

tags/v1.22.7.1
ychao_1983 3 years ago
parent
commit
5c367724b6
1 changed files with 11 additions and 3 deletions
  1. +11
    -3
      routers/repo/modelarts.go

+ 11
- 3
routers/repo/modelarts.go View File

@@ -2049,6 +2049,13 @@ func InferenceJobIndex(ctx *context.Context) {
page = 1
}

listType := ctx.Query("listType")
ctx.Data["ListType"] = listType

if listType == models.AllResource {
listType = ""
}

var jobTypes []string
jobTypes = append(jobTypes, string(models.JobTypeInference))
tasks, count, err := models.Cloudbrains(&models.CloudbrainsOptions{
@@ -2056,9 +2063,10 @@ func InferenceJobIndex(ctx *context.Context) {
Page: page,
PageSize: setting.UI.IssuePagingNum,
},
RepoID: repo.ID,
Type: ctx.QueryInt("type"),
JobTypes: jobTypes,
RepoID: repo.ID,
ComputeResource: listType,
JobTypes: jobTypes,
Type: models.TypeCloudBrainAll,
})
if err != nil {
ctx.ServerError("Cloudbrain", err)


Loading…
Cancel
Save