Browse Source

update

pull/1076/head
liuzx 3 years ago
parent
commit
a4c801f4f0
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      routers/repo/modelarts.go

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

@@ -49,8 +49,10 @@ func DebugJobIndex(ctx *context.Context) {
page = 1
}
debugType := modelarts.DebugType
jobType := string(models.JobTypeDebug)
if debugListType == modelarts.GPUResource {
debugType = models.TypeCloudBrainOne
jobType = ""
}
if debugListType == modelarts.NPUResource {
debugType = models.TypeCloudBrainTwo
@@ -63,7 +65,7 @@ func DebugJobIndex(ctx *context.Context) {
},
RepoID: repo.ID,
Type: debugType,
JobType: string(models.JobTypeDebug),
JobType: jobType,
})
if err != nil {
ctx.ServerError("Get debugjob faild:", err)


Loading…
Cancel
Save