From d4e971d25eeb3225cfebb76e8bf84823ded307d6 Mon Sep 17 00:00:00 2001 From: Richard Park Date: Wed, 11 Mar 2026 22:29:34 +0000 Subject: [PATCH] fixing issue where completed is used without atomic, causing a race condition --- cli/azd/pkg/ux/task_list.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/azd/pkg/ux/task_list.go b/cli/azd/pkg/ux/task_list.go index e47b28da693..99003163a82 100644 --- a/cli/azd/pkg/ux/task_list.go +++ b/cli/azd/pkg/ux/task_list.go @@ -296,7 +296,7 @@ func (t *TaskList) Render(printer Printer) error { // isCompleted checks if all async tasks are complete. func (t *TaskList) isCompleted() bool { - return int(t.completed) == len(t.allTasks) + return int(atomic.LoadInt32(&t.completed)) == len(t.allTasks) } // runSyncTasks executes all synchronous tasks in order after async tasks are completed.