bunqueue v2.6.7
blog · release
bunqueue v2.6.7
Fixes 2 bugs and ships 1 performance improvement. 53 new test suites.
To install bunqueue v2.6.7
Section titled “To install bunqueue v2.6.7”bun add bunqueue@2.6.7npm install bunqueue@2.6.7To upgrade bunqueue
Section titled “To upgrade bunqueue”bun add bunqueue@latest53 new test suites
Section titled “53 new test suites”Comprehensive test coverage across embedded and TCP modes:
- Batch 1–3 (19 embedded + 18 TCP): stress, ETL, retry, cron, queue group, shutdown, backpressure, priorities, lifecycle, data integrity, deduplication, timeouts, flows, removal, pause/resume, worker scaling, cancellation, DLQ patterns, bulk ops
- Coverage gap tests (16 embedded): auto-batching, webhook delivery, durable jobs, rate limiting, lock race conditions, flow + stall detection, cron timezone/DST, LIFO queue, DLQ selective retry, S3 backup concurrent, webhook SSRF, MCP edge cases, CLI error formatting, flow deduplication, sandboxed worker + flow, queue group + flow
More additions
Section titled “More additions”- Total test count increased from ~4,000 to 4,903
Performance
Section titled “Performance”- CronScheduler
scheduleNext()now handles stale entries in O(k) amortized instead of blocking indefinitely
Bugfixes
Section titled “Bugfixes”- CronScheduler stale heap bug: When a cron job was removed,
scheduleNext()encountered the stale heap entry and returned early without setting any timer, preventing all subsequent crons from firing. Now properly pops stale entries from the min-heap until a valid one is found. (#33) - Graceful shutdown burst load: Fixed
worker.close(true)causing unhandled AckBatcher errors when jobs were still completing during burst load scenarios. Changed to graceful close with proper drain.
Documentation
Section titled “Documentation”- Removed BullMQ-only WorkerOptions from API types (lockDuration, maxStalledCount, etc.)
- Added auto-batching documentation to Queue guide
- Added connection pool sizing note to Worker guide
- Fixed CLI help: removed non-existent socket options, fake interactive prompts
Thanks to 1 contributor!
Section titled “Thanks to 1 contributor!”← bunqueue v2.6.6 · Release on GitHub · Commits since v2.6.6 · Full changelog · All posts