forked from JointCloud/pcm-coordinator
updated startall apis
This commit is contained in:
parent
50c594f817
commit
dfb16c919d
|
@ -51,16 +51,6 @@ func updateDeployTaskStatus(svc *svc.ServiceContext, ins *models.AiDeployInstanc
|
|||
return
|
||||
}
|
||||
|
||||
for i := len(list) - 1; i >= 0; i-- {
|
||||
if list[i].Status == constants.Running || list[i].Status == constants.Stopped {
|
||||
list = append(list[:i], list[i+1:]...)
|
||||
}
|
||||
}
|
||||
|
||||
if len(list) == 0 {
|
||||
return
|
||||
}
|
||||
|
||||
for _, instance := range list {
|
||||
go UpdateDeployInstanceStatus(svc, instance, false)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue