Browse Source

提交代码

tags/v1.22.7.1
ychao_1983 3 years ago
parent
commit
b1107fb8f7
2 changed files with 4 additions and 0 deletions
  1. +3
    -0
      modules/cloudbrain/cloudbrain.go
  2. +1
    -0
      routers/repo/cloudbrain.go

+ 3
- 0
modules/cloudbrain/cloudbrain.go View File

@@ -241,6 +241,9 @@ func GenerateTask(req GenerateCloudBrainTaskReq) error {
//如果没有匹配到spec信息,尝试从专属资源池获取
if resourceSpec == nil && SpecialPools != nil {
for _, specialPool := range SpecialPools.Pools {
if resourceSpec != nil {
break
}
if specialPool.ResourceSpec != nil {
if IsElementExist(specialPool.JobType, req.JobType) && IsQueueInSpecialtPool(specialPool.Pool, req.GpuQueue) {
for _, spec := range specialPool.ResourceSpec {


+ 1
- 0
routers/repo/cloudbrain.go View File

@@ -203,6 +203,7 @@ func cloudBrainNewDataPrepare(ctx *context.Context) error {
}
}
}
break
}
}



Loading…
Cancel
Save