|
|
@@ -465,7 +465,7 @@ func QueryTrainModelList(ctx *context.Context) { |
|
|
|
taskType := ctx.QueryInt("type") |
|
|
|
VersionName := ctx.Query("VersionName") |
|
|
|
if taskType == models.TypeCloudBrainTwo { |
|
|
|
objectkey := strings.TrimPrefix(path.Join(setting.TrainJobModelPath, jobName, setting.OutPutPath, VersionName, "/"), "/") |
|
|
|
objectkey := path.Join(setting.TrainJobModelPath, jobName, setting.OutPutPath, VersionName, "/") |
|
|
|
modelDbResult, err := storage.GetAllObjectByBucketAndPrefix(setting.Bucket, objectkey) |
|
|
|
log.Info("bucket=" + setting.Bucket + " objectkey=" + objectkey) |
|
|
|
if err != nil { |
|
|
|