Browse Source

updated aioption

Former-commit-id: ba671ba0ca
pull/263/head
tzwang 1 year ago
parent
commit
4120d60511
3 changed files with 4 additions and 0 deletions
  1. +2
    -0
      internal/scheduler/database/aiStorage.go
  2. +1
    -0
      internal/scheduler/schedulers/option/aiOption.go
  3. +1
    -0
      pkg/models/taskaimodel_gen.go

+ 2
- 0
internal/scheduler/database/aiStorage.go View File

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


+ 1
- 0
internal/scheduler/schedulers/option/aiOption.go View File

@@ -15,6 +15,7 @@ type AiOption struct {
ComputeCard string ComputeCard string
CodeType string CodeType string
AlgorithmName string AlgorithmName string
ModelName string


ImageId string ImageId string
SpecId string SpecId string


+ 1
- 0
pkg/models/taskaimodel_gen.go View File

@@ -55,6 +55,7 @@ type (
DeletedAt *time.Time `db:"deleted_at"` DeletedAt *time.Time `db:"deleted_at"`
Card string `db:"card"` Card string `db:"card"`
InferUrl string `db:"infer_url"` InferUrl string `db:"infer_url"`
ModelName string `db:"model_name"`
} }
) )




Loading…
Cancel
Save