任务执行结果入库
Former-commit-id: f72f8b9f6f6e65d0bedc99f932a0d99ff64fdb9c
This commit is contained in:
parent
966574e593
commit
dc14e4711d
|
@ -40,8 +40,8 @@ func (l *SyncInfoLogic) SyncInfo(in *pcmCore.SyncInfoReq) (*pcmCore.SyncInfoResp
|
|||
switch in.Kind {
|
||||
case "cloud":
|
||||
for _, cloudInfo := range in.CloudInfoList {
|
||||
db.Exec("update cloud set status = ?,start_time = ?,running_time = ? where participant_id = ? and task_id = ? and namespace = ? and name = ?",
|
||||
cloudInfo.Status, cloudInfo.StartTime, cloudInfo.RunningTime, in.ParticipantId, cloudInfo.TaskId, cloudInfo.Namespace, cloudInfo.Name)
|
||||
db.Exec("update cloud set status = ?,start_time = ?,running_time = ?,result = ? where participant_id = ? and task_id = ? and namespace = ? and name = ?",
|
||||
cloudInfo.Status, cloudInfo.StartTime, cloudInfo.RunningTime, cloudInfo.Result, in.ParticipantId, cloudInfo.TaskId, cloudInfo.Namespace, cloudInfo.Name)
|
||||
}
|
||||
case "hpc":
|
||||
for _, hpcInfo := range in.HpcInfoList {
|
||||
|
|
Loading…
Reference in New Issue