Skip to content

Commit

Permalink
fix: task cancellation
Browse files Browse the repository at this point in the history
  • Loading branch information
garethgeorge committed Dec 22, 2023
1 parent 9522ac1 commit d49b729
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/orchestrator/scheduledtaskheap.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ func (t *taskQueue) Push(tasks ...scheduledTask) {
defer t.mu.Unlock()

for _, task := range tasks {
task := task
if task.task == nil {
panic("task cannot be nil")
}
Expand Down

0 comments on commit d49b729

Please sign in to comment.