|
|
@@ -54,8 +54,10 @@ func DebugJobIndex(ctx *context.Context) { |
|
|
|
page = 1 |
|
|
|
} |
|
|
|
debugType := modelarts.DebugType |
|
|
|
jobTypeNot := false |
|
|
|
if debugListType == models.GPUResource { |
|
|
|
debugType = models.TypeCloudBrainOne |
|
|
|
jobTypeNot = true |
|
|
|
} else if debugListType == models.NPUResource { |
|
|
|
debugType = models.TypeCloudBrainTwo |
|
|
|
} |
|
|
@@ -67,8 +69,8 @@ func DebugJobIndex(ctx *context.Context) { |
|
|
|
}, |
|
|
|
RepoID: repo.ID, |
|
|
|
Type: debugType, |
|
|
|
JobTypeNot: true, |
|
|
|
JobType: string(models.JobTypeTrain), |
|
|
|
JobTypeNot: jobTypeNot, |
|
|
|
JobType: string(models.JobTypeDebug), |
|
|
|
}) |
|
|
|
if err != nil { |
|
|
|
ctx.ServerError("Get debugjob faild:", err) |
|
|
|