mirror of
https://github.com/vercel/workflow.git
synced 2026-09-14 19:59:43 +08:00
0fd0891cc4
Co-authored-by: Nathan Rajlich <n@n8.io>
504 B
504 B
@workflow/core
| @workflow/core |
|---|
| patch |
Fix CorruptedEventLogError on replay when a workflow races a hook read against a sleep() (e.g. Promise.race([hook, sleep])). Branch-deciding deliveries (buffered hook payloads and wait completions) are now handed to the workflow in strict event-log order — anchored on event position rather than on microtask-resolution timing — so the committed branch wins the race deterministically, independent of decryption/hydration time or Promise.race argument order.