|
|
|
@@ -2009,6 +2009,12 @@ func BenchMarkAlgorithmCreate(ctx *context.Context, form auth.CreateCloudBrainFo |
|
|
|
//return |
|
|
|
} |
|
|
|
|
|
|
|
dataActualPath := setting.Attachment.Minio.RealPath + |
|
|
|
setting.Attachment.Minio.Bucket + "/" + |
|
|
|
setting.Attachment.Minio.BasePath + |
|
|
|
models.AttachmentRelativePath(childInfo.Attachment) + |
|
|
|
childInfo.Attachment |
|
|
|
|
|
|
|
req := cloudbrain.GenerateCloudBrainTaskReq{ |
|
|
|
Ctx: ctx, |
|
|
|
DisplayJobName: displayJobName, |
|
|
|
@@ -2031,6 +2037,7 @@ func BenchMarkAlgorithmCreate(ctx *context.Context, form auth.CreateCloudBrainFo |
|
|
|
BenchmarkTypeID: benchmarkTypeID, |
|
|
|
BenchmarkChildTypeID: benchmarkChildTypeID, |
|
|
|
ResourceSpecId: resourceSpecId, |
|
|
|
DataLocalPath: dataActualPath, |
|
|
|
} |
|
|
|
|
|
|
|
err = cloudbrain.GenerateTask(req) |
|
|
|
@@ -2127,6 +2134,12 @@ func ModelBenchmarkCreate(ctx *context.Context, form auth.CreateCloudBrainForm) |
|
|
|
command = fmt.Sprintf(cloudbrain.BrainScoreCommand, getBrainRegion(benchmarkChildTypeID), displayJobName, trimSpaceNewlineInString(form.Description)) |
|
|
|
} |
|
|
|
|
|
|
|
dataActualPath := setting.Attachment.Minio.RealPath + |
|
|
|
setting.Attachment.Minio.Bucket + "/" + |
|
|
|
setting.Attachment.Minio.BasePath + |
|
|
|
models.AttachmentRelativePath(uuid) + |
|
|
|
uuid |
|
|
|
|
|
|
|
req := cloudbrain.GenerateCloudBrainTaskReq{ |
|
|
|
Ctx: ctx, |
|
|
|
DisplayJobName: displayJobName, |
|
|
|
@@ -2149,6 +2162,7 @@ func ModelBenchmarkCreate(ctx *context.Context, form auth.CreateCloudBrainForm) |
|
|
|
BenchmarkTypeID: 0, |
|
|
|
BenchmarkChildTypeID: benchmarkChildTypeID, |
|
|
|
ResourceSpecId: resourceSpecId, |
|
|
|
DataLocalPath: dataActualPath, |
|
|
|
} |
|
|
|
|
|
|
|
err = cloudbrain.GenerateTask(req) |
|
|
|
|