forked from JointCloud/pcm-coordinator
parent
ecd7b7c186
commit
1e5b77cf4f
|
@ -42,16 +42,12 @@ func UpdateDeployTaskStatus(svc *svc.ServiceContext) {
|
|||
ins = list[i]
|
||||
}
|
||||
}
|
||||
updateDeployTaskStatus(svc, ins)
|
||||
}
|
||||
|
||||
func updateDeployTaskStatus(svc *svc.ServiceContext, ins *models.AiDeployInstanceTask) {
|
||||
list, err := svc.Scheduler.AiStorages.GetInstanceListByDeployTaskId(ins.Id)
|
||||
inslist, err := svc.Scheduler.AiStorages.GetInstanceListByDeployTaskId(ins.Id)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
|
||||
for _, instance := range list {
|
||||
for _, instance := range inslist {
|
||||
go UpdateDeployInstanceStatus(svc, instance, false)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue