Merge pull request 'updated shuguang deployinstance logics' (#307) from tzwang/pcm-coordinator:master into master
Former-commit-id: abcac3579eafcc73bd85e5eab87f94d037bf3235
This commit is contained in:
commit
97d2af6f2d
|
@ -240,7 +240,7 @@ func (i *ImageInference) inferImages(cs []*FilteredCluster) ([]*types.ImageResul
|
|||
var wg sync.WaitGroup
|
||||
var ch = make(chan *types.ImageResult, len(i.files))
|
||||
var results []*types.ImageResult
|
||||
limit := make(chan bool, 7)
|
||||
limit := make(chan bool, 5)
|
||||
|
||||
var imageNumIdx int32 = 0
|
||||
var imageNumIdxEnd int32 = 0
|
||||
|
@ -396,7 +396,6 @@ func (i *ImageInference) sendInferReq(images []*ImageFile, cluster *FilteredClus
|
|||
return
|
||||
}
|
||||
}(image, cluster)
|
||||
<-limit
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -801,8 +801,11 @@ func (s *ShuguangAi) GetInferDeployInstanceList(ctx context.Context) ([]*inferen
|
|||
var insList []*inference.DeployInstance
|
||||
params := &hpcAC.GetInstanceServiceListReqParam{
|
||||
InstanceServiceName: DEPLOY_INSTANCE_PREFIEX,
|
||||
Status: "",
|
||||
TaskType: "",
|
||||
Start: 0,
|
||||
Limit: DEPLOY_INSTANCE_LIMIT,
|
||||
Sort: "desc",
|
||||
}
|
||||
req := &hpcacclient.GetInstanceServiceListReq{
|
||||
Param: params,
|
||||
|
|
Loading…
Reference in New Issue