Browse Source

提交代码。

Signed-off-by: zouap <zouap@pcl.ac.cn>
tags/v1.22.1.3
zouap 3 years ago
parent
commit
063622ff40
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      routers/repo/cloudbrain.go

+ 3
- 0
routers/repo/cloudbrain.go View File

@@ -345,6 +345,7 @@ func cloudBrainShow(ctx *context.Context, tpName base.TplName) {
} }


if result != nil { if result != nil {
log.Info("task is ...")
jobRes, _ := models.ConvertToJobResultPayload(result.Payload) jobRes, _ := models.ConvertToJobResultPayload(result.Payload)
jobRes.Resource.Memory = strings.ReplaceAll(jobRes.Resource.Memory, "Mi", "MB") jobRes.Resource.Memory = strings.ReplaceAll(jobRes.Resource.Memory, "Mi", "MB")
taskRoles := jobRes.TaskRoles taskRoles := jobRes.TaskRoles
@@ -371,6 +372,8 @@ func cloudBrainShow(ctx *context.Context, tpName base.TplName) {
} }


ctx.Data["result"] = jobRes ctx.Data["result"] = jobRes
} else {
log.Info("error:" + err.Error())
} }


ctx.Data["task"] = task ctx.Data["task"] = task


Loading…
Cancel
Save