Browse Source

提交代码

pull/3418/head
ychao_1983 2 years ago
parent
commit
e6e8dfd888
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