Browse Source

fix-3241

tags/v1.22.12.1^2
liuzx 3 years ago
parent
commit
fc77e24173
1 changed files with 0 additions and 4 deletions
  1. +0
    -4
      routers/api/v1/repo/cloudbrain.go

+ 0
- 4
routers/api/v1/repo/cloudbrain.go View File

@@ -761,10 +761,6 @@ func CloudbrainGetLog(ctx *context.APIContext) {
content = result["Content"].(string)
}

if ctx.Data["existStr"] != nil && result["Lines"].(int) < 50 {
content = content + ctx.Data["existStr"].(string)
}

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)


Loading…
Cancel
Save