From ef72b1014f2f83cbb9de5b2c67c7cb702212333b Mon Sep 17 00:00:00 2001 From: tzwang Date: Thu, 29 Aug 2024 17:21:10 +0800 Subject: [PATCH] updated createDeployInstance logics Former-commit-id: 5b8465ca651503401f6fd00de93268e6e6ae8d41 --- internal/logic/inference/createdeploytasklogic.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/logic/inference/createdeploytasklogic.go b/internal/logic/inference/createdeploytasklogic.go index 831c5428..318950ec 100644 --- a/internal/logic/inference/createdeploytasklogic.go +++ b/internal/logic/inference/createdeploytasklogic.go @@ -60,11 +60,11 @@ func (l *CreateDeployTaskLogic) CreateDeployTask(req *types.CreateDeployTaskReq) func (l *CreateDeployTaskLogic) createDeployInstance(taskId int64, adapterId string, clusterId string, opt *option.InferOption) error { cmap, found := l.svcCtx.Scheduler.AiService.InferenceAdapterMap[adapterId] if !found { - + return errors.New("adapterId not exist: " + adapterId) } iCluster, found := cmap[clusterId] if !found { - + return errors.New("clusterId not exist: " + clusterId) } insId, err := iCluster.CreateInferDeployInstance(l.ctx, opt) if err != nil {