mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-11-25 16:37:32 +00:00
A compile that ran long held the render server's main thread, so the render's cancel, its maxRenderMs guard, a client disconnect and /health could not act until it finished. The compile now runs on a worker thread. The render's abort signal stops it, and a 10-minute cap ends it with COMPILE_TIMEOUT, a non-retryable user error. Production compiles over 7 days peaked at 154 s (p99.9 18 s). HYPERFRAMES_COMPILE_TIMEOUT_MS overrides the cap. Bundles that inline the producer name the worker with HF_COMPILE_WORKER_ENTRY, or compile in-process as before. The producer's packed-size budget grows for the worker bundle.