|
|
|
@@ -147,6 +147,7 @@ func (s *AiStorage) SaveAiTask(taskId int64, opt option.Option, adapterName stri |
|
|
|
aiOpt.Replica = inferOpt.Replica |
|
|
|
aiOpt.AdapterId = inferOpt.AdapterId |
|
|
|
aiOpt.TaskType = inferOpt.ModelType |
|
|
|
aiOpt.ModelName = inferOpt.ModelName |
|
|
|
aiOpt.StrategyName = inferOpt.Strategy |
|
|
|
} |
|
|
|
// 构建主任务结构体 |
|
|
|
@@ -169,6 +170,7 @@ func (s *AiStorage) SaveAiTask(taskId int64, opt option.Option, adapterName stri |
|
|
|
Replica: int64(aiOpt.Replica), |
|
|
|
JobId: jobId, |
|
|
|
TaskType: aiOpt.TaskType, |
|
|
|
ModelName: aiOpt.ModelName, |
|
|
|
Strategy: aiOpt.StrategyName, |
|
|
|
Status: status, |
|
|
|
Msg: msg, |
|
|
|
|