|
|
@@ -2107,6 +2107,7 @@ func SetJobCount(ctx *context.Context) { |
|
|
|
repoId := ctx.Repo.Repository.ID |
|
|
|
_, jobCount, err := models.Cloudbrains(&models.CloudbrainsOptions{ |
|
|
|
RepoID: repoId, |
|
|
|
Type: modelarts.DebugType, |
|
|
|
}) |
|
|
|
if err != nil { |
|
|
|
ctx.ServerError("Get job faild:", err) |
|
|
|