Merge branch 'master' of https://gitlink.org.cn/JointCloud/pcm-coordinator
Former-commit-id: 28da880d850ec7649bbde5638b02629299561a86
This commit is contained in:
commit
7fcfcfe7ac
|
@ -112,8 +112,6 @@ func (s *AiStorage) SaveAiTask(taskId int64, option *option.AiOption, clusterId
|
|||
return err
|
||||
}
|
||||
|
||||
del, _ := time.Parse(constants.Layout, constants.Layout)
|
||||
|
||||
aiTaskModel := models.TaskAi{
|
||||
TaskId: taskId,
|
||||
AdapterId: aId,
|
||||
|
@ -127,7 +125,6 @@ func (s *AiStorage) SaveAiTask(taskId int64, option *option.AiOption, clusterId
|
|||
Status: status,
|
||||
Msg: msg,
|
||||
Card: option.ComputeCard,
|
||||
DeletedAt: del,
|
||||
CommitTime: time.Now(),
|
||||
}
|
||||
// 保存任务数据到数据库
|
||||
|
|
|
@ -52,7 +52,7 @@ type (
|
|||
StartTime string `db:"start_time"` // 开始时间
|
||||
EndTime string `db:"end_time"` // 结束时间
|
||||
TaskType string `db:"task_type"`
|
||||
DeletedAt time.Time `db:"deleted_at"`
|
||||
DeletedAt *time.Time `db:"deleted_at"`
|
||||
Card string `db:"card"`
|
||||
}
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue