mirror of
https://github.com/vercel/workflow.git
synced 2026-09-14 19:59:43 +08:00
2305e329c7
Concurrent replays of one run contend for the same event slots, and the loser of a rejected write restarted immediately, putting every loser back in contention at once so none pulled ahead. Wait a full-jitter interval first, doubling per restart to a 400ms cap. Tunable with WORKFLOW_PRECONDITION_RESTART_BACKOFF_MS (0 disables) and WORKFLOW_PRECONDITION_RESTART_BACKOFF_MAX_MS.