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