|
|
|
@@ -463,8 +463,9 @@ func QueryTrainModelList(ctx *context.Context) { |
|
|
|
log.Info("query train job list. start.") |
|
|
|
jobName := ctx.Query("jobName") |
|
|
|
taskType := ctx.QueryInt("type") |
|
|
|
VersionName := ctx.Query("VersionName") |
|
|
|
if taskType == models.TypeCloudBrainTwo { |
|
|
|
objectkey := strings.TrimPrefix(path.Join(setting.TrainJobModelPath, jobName, setting.OutPutPath), "/") |
|
|
|
objectkey := strings.TrimPrefix(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 { |
|
|
|
|