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