Browse Source

updated startall apis

Former-commit-id: 5c9609b143
pull/280/head
tzwang 1 year ago
parent
commit
1e5b77cf4f
1 changed files with 2 additions and 6 deletions
  1. +2
    -6
      internal/scheduler/service/updater/deployInstance.go

+ 2
- 6
internal/scheduler/service/updater/deployInstance.go View File

@@ -42,16 +42,12 @@ func UpdateDeployTaskStatus(svc *svc.ServiceContext) {
ins = list[i] 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 { if err != nil {
return return
} }


for _, instance := range list {
for _, instance := range inslist {
go UpdateDeployInstanceStatus(svc, instance, false) go UpdateDeployInstanceStatus(svc, instance, false)
} }
} }


Loading…
Cancel
Save