Skip to content

Commit

Permalink
fix: proper use of extensions channel
Browse files Browse the repository at this point in the history
  • Loading branch information
abelanger5 committed Dec 20, 2024
1 parent 2d079ed commit 712319e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/scheduling/v2/scheduler.go
Original file line number Diff line number Diff line change
Expand Up @@ -668,7 +668,6 @@ func (s *Scheduler) tryAssign(
startTotal := time.Now()

extensionResultsCh := make(chan *assignResults, len(actionIdToQueueItems))
defer close(extensionResultsCh)

// process each action id in parallel
for actionId, qis := range actionIdToQueueItems {
Expand Down Expand Up @@ -760,6 +759,7 @@ func (s *Scheduler) tryAssign(
wg.Wait()
span.End()
close(resultsCh)
close(extensionResultsCh)

extInput := s.getExtensionInput(extensionResultsCh)

Expand Down

0 comments on commit 712319e

Please sign in to comment.