updated startall apis

This commit is contained in:
tzwang 2024-07-31 16:27:15 +08:00
parent 50c594f817
commit dfb16c919d
1 changed files with 0 additions and 10 deletions

View File

@ -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)
}