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