|
|
@@ -582,12 +582,13 @@ func logErrorAndUpdateJobStatus(err error, taskInfo *models.Cloudbrain) { |
|
|
|
} |
|
|
|
|
|
|
|
func CloudBrainDel(ctx *context.Context) { |
|
|
|
var listType = ctx.Query("debugListType") |
|
|
|
if err := deleteCloudbrainJob(ctx); err != nil { |
|
|
|
log.Error("deleteCloudbrainJob failed: %v", err, ctx.Data["msgID"]) |
|
|
|
ctx.ServerError(err.Error(), err) |
|
|
|
return |
|
|
|
} |
|
|
|
ctx.Redirect(setting.AppSubURL + ctx.Repo.RepoLink + "/debugjob?debugListType=all") |
|
|
|
ctx.Redirect(setting.AppSubURL + ctx.Repo.RepoLink + "/debugjob?debugListType=" + listType) |
|
|
|
} |
|
|
|
|
|
|
|
func deleteCloudbrainJob(ctx *context.Context) error { |
|
|
|