|
|
|
@@ -82,6 +82,7 @@ func (l *StartAllByDeployTaskIdLogic) startAll(list []*models.AiInferDeployInsta |
|
|
|
errCh <- e |
|
|
|
wg.Done() |
|
|
|
<-buf |
|
|
|
return |
|
|
|
} |
|
|
|
if checkStopStatus(in) { |
|
|
|
success := l.svcCtx.Scheduler.AiService.InferenceAdapterMap[strconv.FormatInt(ins.AdapterId, 10)][strconv.FormatInt(ins.ClusterId, 10)].StartInferDeployInstance(l.ctx, ins.InstanceId) |
|
|
|
@@ -100,11 +101,15 @@ func (l *StartAllByDeployTaskIdLogic) startAll(list []*models.AiInferDeployInsta |
|
|
|
errCh <- e |
|
|
|
wg.Done() |
|
|
|
<-buf |
|
|
|
return |
|
|
|
} |
|
|
|
} |
|
|
|
wg.Done() |
|
|
|
<-buf |
|
|
|
}() |
|
|
|
<-buf |
|
|
|
} |
|
|
|
wg.Wait() |
|
|
|
close(errCh) |
|
|
|
|
|
|
|
for e := range errCh { |
|
|
|
errs = append(errs, e) |
|
|
|
|