|
|
@@ -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) |
|
|
|