|
|
|
@@ -238,6 +238,7 @@ func GenerateTask(ctx *context.Context, jobName, uuid, description, flavor strin |
|
|
|
Uuid: uuid, |
|
|
|
ComputeResource: models.NPUResource, |
|
|
|
CreatedUnix: createTime, |
|
|
|
UpdatedUnix: createTime, |
|
|
|
}) |
|
|
|
|
|
|
|
if err != nil { |
|
|
|
@@ -292,6 +293,7 @@ func GenerateNotebook2(ctx *context.Context, displayJobName, jobName, uuid, desc |
|
|
|
Image: imageName, |
|
|
|
Description: description, |
|
|
|
CreatedUnix: createTime, |
|
|
|
UpdatedUnix: createTime, |
|
|
|
}) |
|
|
|
|
|
|
|
if err != nil { |
|
|
|
@@ -370,6 +372,7 @@ func GenerateTrainJob(ctx *context.Context, req *GenerateTrainJobReq) (err error |
|
|
|
VersionCount: req.VersionCount, |
|
|
|
TotalVersionCount: req.TotalVersionCount, |
|
|
|
CreatedUnix: createTime, |
|
|
|
UpdatedUnix: createTime, |
|
|
|
}) |
|
|
|
|
|
|
|
if err != nil { |
|
|
|
@@ -459,6 +462,7 @@ func GenerateTrainJobVersion(ctx *context.Context, req *GenerateTrainJobReq, job |
|
|
|
TotalVersionCount: VersionTaskList[0].TotalVersionCount + 1, |
|
|
|
VersionCount: VersionListCount + 1, |
|
|
|
CreatedUnix: createTime, |
|
|
|
UpdatedUnix: createTime, |
|
|
|
}) |
|
|
|
if err != nil { |
|
|
|
log.Error("CreateCloudbrain(%s) failed:%v", req.JobName, err.Error()) |
|
|
|
@@ -601,6 +605,7 @@ func GenerateInferenceJob(ctx *context.Context, req *GenerateInferenceJobReq) (e |
|
|
|
CkptName: req.CkptName, |
|
|
|
ResultUrl: req.ResultUrl, |
|
|
|
CreatedUnix: createTime, |
|
|
|
UpdatedUnix: createTime, |
|
|
|
}) |
|
|
|
|
|
|
|
if err != nil { |
|
|
|
|