Skip to content

Commit 7e04032

Browse files
Fix CPU-pegging busy-spin in Stop() (#180)
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 7704dc7 commit 7e04032

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

workflow.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -347,5 +347,7 @@ func (w *Workflow[Type, Status]) Stop() {
347347
if runningProcesses == 0 {
348348
return
349349
}
350+
351+
time.Sleep(10 * time.Millisecond)
350352
}
351353
}

0 commit comments

Comments
 (0)