diff --git a/internal/orchestrator/scheduledtaskheap.go b/internal/orchestrator/scheduledtaskheap.go index 8854b24f..8fc6f34d 100644 --- a/internal/orchestrator/scheduledtaskheap.go +++ b/internal/orchestrator/scheduledtaskheap.go @@ -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") }