core-rpc 同步天河信息字段修改
Former-commit-id: 8bea8f8170a359c8e301318957056bf31d693243
This commit is contained in:
parent
8056d81a89
commit
fcf8fe884a
|
@ -45,8 +45,9 @@ func (l *SyncInfoLogic) SyncInfo(in *pcmCore.SyncInfoReq) (*pcmCore.SyncInfoResp
|
|||
}
|
||||
case "hpc":
|
||||
for _, hpcInfo := range in.HpcInfoList {
|
||||
db.Exec("update hpc set status = ?,derived_es = ?,assoc_id = ?,exit_code = ?,version = ?,alloc_cpu = ?,alloc_nodes = ?,cluster = ?,clock_id = ?,start_time = ?,running_time = ?,job_id = ? where service_name = ? and task_id = ? and name = ?",
|
||||
tx := db.Exec("update hpc set status = ?,derived_es = ?,assoc_id = ?,exit_code = ?,version = ?,alloc_cpu = ?,alloc_nodes = ?,cluster = ?,block_id = ?,start_time = ?,running_time = ?,job_id = ? where service_name = ? and task_id = ? and name = ?",
|
||||
hpcInfo.Status, hpcInfo.DerivedEs, hpcInfo.AssocId, hpcInfo.ExitCode, hpcInfo.Version, hpcInfo.AllocCpu, hpcInfo.AllocNodes, hpcInfo.Cluster, hpcInfo.BlockId, hpcInfo.StartTime, hpcInfo.RunningTime, hpcInfo.JobId, in.ServiceName, hpcInfo.TaskId, hpcInfo.Name)
|
||||
print(tx.Error)
|
||||
}
|
||||
case "ai":
|
||||
for _, aiInfo := range in.AiInfoList {
|
||||
|
|
Loading…
Reference in New Issue