Skip to content

Commit

Permalink
Signed-off-by: limengxuan <391013634@qq.com>
Browse files Browse the repository at this point in the history
fix deadlock in gang-scheduling scenario part 2
  • Loading branch information
archlitchi committed Aug 11, 2023
1 parent ec22228 commit fdea59c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
4 changes: 0 additions & 4 deletions example/integrations/mpi/mpi-example.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,6 @@ spec:
- containerPort: 22
name: mpijob-port
workingDir: /home
resources:
limits:
volcano.sh/vgpu-number: 1
volcano.sh/vgpu-memory: 1024
restartPolicy: OnFailure
- replicas: 2
name: mpiworker
Expand Down
1 change: 1 addition & 0 deletions pkg/scheduler/actions/allocate/allocate.go
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,7 @@ func (alloc *Action) Execute(ssn *framework.Session) {
}
}
}

if ssn.JobReady(job) && !tasks.Empty() {
jobs.Push(job)
break
Expand Down

0 comments on commit fdea59c

Please sign in to comment.