bunqueue v2.4.2
blog · release
bunqueue v2.4.2
CPU-Intensive Workers guide, CPU stress test script.
To install bunqueue v2.4.2
Section titled “To install bunqueue v2.4.2”bun add bunqueue@2.4.2npm install bunqueue@2.4.2To upgrade bunqueue
Section titled “To upgrade bunqueue”bun add bunqueue@latestCPU-Intensive Workers guide
Section titled “CPU-Intensive Workers guide”New dedicated docs page for handling CPU-heavy jobs over TCP
- Explains the ping health check failure chain that causes job loss after ~90s of CPU load
- Connection tuning:
pingInterval: 0,commandTimeout: 60000 - Non-blocking CPU patterns with
await Bun.sleep(0)yield - Default timeouts reference table
- SandboxedWorker as alternative for truly CPU-bound work
CPU stress test script
Section titled “CPU stress test script”scripts/stress-cpu-intensive.ts (500 jobs, 5 CPU task types, concurrency 3)
Thanks to 1 contributor!
Section titled “Thanks to 1 contributor!”← bunqueue v2.4.1 · Release on GitHub · Commits since v2.4.1 · Full changelog · All posts