|
|
@@ -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 |
|
|
|