forked from JointCloud/pcm-coordinator
任务执行结果入库
This commit is contained in:
parent
a4c90176ce
commit
f72f8b9f6f
|
@ -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