bunqueue v2.7.5
blog · release
bunqueue v2.7.5
Fixes 1 bug. job.moveToFailed() inside processor was a no-op (Issue #82), Calling job.moveToFailed() inside a worker processor silently did nothing because move method callbacks were not wired to createPublicJob.
To install bunqueue v2.7.5
Section titled “To install bunqueue v2.7.5”bun add bunqueue@2.7.5npm install bunqueue@2.7.5To upgrade bunqueue
Section titled “To upgrade bunqueue”bun add bunqueue@latestChanges
Section titled “Changes”- Extracted handler factories from
processor.tsinto newsrc/client/worker/processorHandlers.tsfor single-responsibility compliance.
Bugfixes
Section titled “Bugfixes”job.moveToFailed()inside processor was a no-op (Issue #82), Callingjob.moveToFailed()inside a worker processor silently did nothing because move method callbacks were not wired tocreatePublicJob. The worker then auto-ACKed the job, marking it as completed instead of failed. NowmoveToFailed()andmoveToCompleted()work correctly inside processors: they send the appropriate command and prevent the auto-ACK from overriding the state.
- 3 new issue #82 reproduction tests (
test/issue-82-moveToFailed.test.ts)
Thanks to 1 contributor!
Section titled “Thanks to 1 contributor!”← bunqueue v2.7.4 · Release on GitHub · Commits since v2.7.4 · Full changelog · All posts