Skip to content
Get started
Get started
bunqueue v2.0.2
View Markdown
blog · release

bunqueue v2.0.2

Fixes 1 bug. loadCompletedJobIds() method in SQLite storage for dependency recovery, hasResult() method to check if job result exists in SQLite.

bun add bunqueue@2.0.2
npm install bunqueue@2.0.2
bun add bunqueue@latest
  • loadCompletedJobIds() method in SQLite storage for dependency recovery
  • hasResult() method to check if job result exists in SQLite
  • Comprehensive recovery test suite (test/recoveryLogic.test.ts) with 8 tests covering all scenarios
  • Critical: Complete recovery logic for deduplication after restart - Fixed all recovery scenarios that caused duplicate jobs after server restart:
    • jobId deduplication (customIdMap) - Now properly populated on recovery
    • uniqueKey TTL deduplication - Now restored with TTL settings via registerUniqueKeyWithTtl()
    • Dependency recovery - Now checks SQLite job_results table (not just in-memory completedJobs)
    • Counter consistency - Fixed incrementQueued() only called for main queue jobs, not waitingDeps

← bunqueue v2.0.1 · Release on GitHub · Commits since v2.0.1 · Full changelog · All posts