|
|
|
@@ -428,8 +428,7 @@ func CloudbrainDownloadLogFile(ctx *context.Context) { |
|
|
|
if job.JobType == string(models.JobTypeInference) { |
|
|
|
logDir = cloudbrain.ResultPath |
|
|
|
} |
|
|
|
prefix := "/" + setting.CBCodePathPrefix + job.JobName + logDir |
|
|
|
files, err := storage.GetOneLevelAllObjectUnderDirMinio(setting.Attachment.Minio.Bucket, prefix, "") |
|
|
|
files, err := storage.GetOneLevelAllObjectUnderDirMinio(setting.Attachment.Minio.Bucket, setting.CBCodePathPrefix+job.JobName+logDir, "") |
|
|
|
if err != nil { |
|
|
|
log.Error("query cloudbrain model failed: %v", err) |
|
|
|
return |
|
|
|
@@ -442,6 +441,7 @@ func CloudbrainDownloadLogFile(ctx *context.Context) { |
|
|
|
} |
|
|
|
} |
|
|
|
if fileName != "" { |
|
|
|
prefix := "/" + setting.CBCodePathPrefix + job.JobName + logDir |
|
|
|
url, err := storage.Attachments.PresignedGetURL(prefix+"/"+fileName, fileName) |
|
|
|
if err != nil { |
|
|
|
log.Error("Get minio get SignedUrl failed: %v", err.Error(), ctx.Data["msgID"]) |
|
|
|
|