Browse Source

提交代码。

Signed-off-by: zouap <zouap@pcl.ac.cn>
tags/v1.22.7.1
zouap 3 years ago
parent
commit
d01643f1fc
1 changed files with 8 additions and 0 deletions
  1. +8
    -0
      routers/api/v1/repo/modelarts.go

+ 8
- 0
routers/api/v1/repo/modelarts.go View File

@@ -225,6 +225,14 @@ func TrainJobForModelConvertGetLog(ctx *context.APIContext) {
if err != nil {
log.Error("trainJobGetLog(%s) failed:%v", jobID, err.Error())
// ctx.RenderWithErr(err.Error(), tplModelArtsTrainJobShow, nil)
ctx.JSON(http.StatusOK, map[string]interface{}{
"JobID": jobID,
"LogFileName": "",
"StartLine": "0",
"EndLine": "0",
"Content": "",
"Lines": 0,
})
return
}



Loading…
Cancel
Save