bunqueue v2.0.2
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.
To install bunqueue v2.0.2
Section titled “To install bunqueue v2.0.2”bun add bunqueue@2.0.2npm install bunqueue@2.0.2To upgrade bunqueue
Section titled “To upgrade bunqueue”bun add bunqueue@latestWhat’s new
Section titled “What’s new”loadCompletedJobIds()method in SQLite storage for dependency recoveryhasResult()method to check if job result exists in SQLite- Comprehensive recovery test suite (
test/recoveryLogic.test.ts) with 8 tests covering all scenarios
Bugfixes
Section titled “Bugfixes”- 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_resultstable (not just in-memorycompletedJobs) - Counter consistency - Fixed
incrementQueued()only called for main queue jobs, notwaitingDeps
- jobId deduplication (
Thanks to 1 contributor!
Section titled “Thanks to 1 contributor!”← bunqueue v2.0.1 · Release on GitHub · Commits since v2.0.1 · Full changelog · All posts