mirror of
https://github.com/vercel/workflow.git
synced 2026-09-14 19:59:43 +08:00
f5aeaa869c
Co-authored-by: Peter Wielander <peter.wielander@vercel.com>
922 B
922 B
workflow, @workflow/core, @workflow/world, @workflow/world-vercel, @workflow/world-local, @workflow/web-shared, @workflow/world-postgres
| workflow | @workflow/core | @workflow/world | @workflow/world-vercel | @workflow/world-local | @workflow/web-shared | @workflow/world-postgres |
|---|---|---|---|---|---|---|
| minor | minor | minor | minor | minor | patch | patch |
Lazy hook resumption: on a fast path, resumeHook() writes the hook_received event and dispatches the workflow queue message concurrently instead of sequentially, cutting a round trip off resume latency. A (runId, resumeId) dedup constraint keeps the two writers converging on exactly one event; the runtime falls back to the sequential path when dedup support is unavailable or when WORKFLOW_DISABLE_LAZY_HOOK_RESUME=1. resumeHook() resolves to a ResumedHook (a Hook plus an optional resilientResume: true flag, set only when the direct write failed transiently and the resume was recovered via the queue consumer's re-ensure) — preserving the contract introduced alongside the resilient-resume work.