Browse Source

Merge branch 'grampus-notebook' of openi.pcl.ac.cn:OpenI/aiforge into grampus-notebook

pull/3418/head
zhoupzh 2 years ago
parent
commit
68f6818f50
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      routers/repo/grampus.go

+ 2
- 2
routers/repo/grampus.go View File

@@ -958,7 +958,7 @@ func GrampusStopJob(ctx *context.Context) {
if task.Status == models.GrampusStatusStopped || task.Status == models.GrampusStatusFailed || task.Status == models.GrampusStatusSucceeded {
log.Error("the job(%s) has been stopped", task.JobName, ctx.Data["msgID"])
resultCode = "-1"
errorMsg = "System error"
errorMsg = ctx.Tr("cloudbrain.Already_stopped")
break
}

@@ -966,7 +966,7 @@ func GrampusStopJob(ctx *context.Context) {
if err != nil {
log.Error("StopJob(%s) failed:%v", task.JobName, err, ctx.Data["msgID"])
resultCode = strconv.Itoa(res.ErrorCode)
errorMsg = res.ErrorMsg
errorMsg = ctx.Tr("cloudbrain.Stopped_failed")
break
}
oldStatus := task.Status


Loading…
Cancel
Save