|
|
|
@@ -910,6 +910,8 @@ func GetGrampusNotebook(ctx *context.APIContext) { |
|
|
|
|
|
|
|
jobAfter, err := cloudbrainTask.SyncGrampusNotebookStatus(job) |
|
|
|
|
|
|
|
aiCenterName := cloudbrainService.GetAiCenterShow(jobAfter.AiCenter, ctx.Context) |
|
|
|
|
|
|
|
if err != nil { |
|
|
|
ctx.NotFound(err) |
|
|
|
log.Error("Sync cloud brain one status failed:", err) |
|
|
|
@@ -920,7 +922,7 @@ func GetGrampusNotebook(ctx *context.APIContext) { |
|
|
|
"ID": ID, |
|
|
|
"JobName": jobAfter.JobName, |
|
|
|
"JobStatus": jobAfter.Status, |
|
|
|
"SubState": "", |
|
|
|
"AiCenter": aiCenterName, |
|
|
|
"CreatedTime": jobAfter.CreatedUnix.Format("2006-01-02 15:04:05"), |
|
|
|
"CompletedTime": jobAfter.UpdatedUnix.Format("2006-01-02 15:04:05"), |
|
|
|
"JobDuration": jobAfter.TrainJobDuration, |
|
|
|
|