Browse Source

fix-3393

fix-3221-v1
liuzx 2 years ago
parent
commit
c3bf329a3a
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      routers/api/v1/repo/cloudbrain.go

+ 3
- 1
routers/api/v1/repo/cloudbrain.go View File

@@ -763,11 +763,13 @@ func CloudbrainGetLog(ctx *context.APIContext) {

if (job.JobType == string(models.JobTypeTrain) || job.JobType == string(models.JobTypeInference)) && job.Type == models.TypeCloudBrainOne && job.Status == string(models.JobFailed) {
if ctx.Data["existStr"] != nil {
content = content + ctx.Data["existStr"].(string)
if baseLine == "" && order == "desc" && result["Lines"].(int) == 0 {
result["Lines"] = 1
result["EndLine"] = 1
}
if ctx.Data["existStr"] != nil && result["Lines"].(int) < 60 {
content = content + ctx.Data["existStr"].(string)
}
}
} else {
if ctx.Data["existStr"] != nil && result["Lines"].(int) < 50 {


Loading…
Cancel
Save