bunqueue v2.4.3
blog · release
bunqueue v2.4.3
Fixes 2 bugs. Batch push now wakes all waiting workers - pushJobBatch previously called notify() only once, causing only 1 of N waiting workers to wake up immediately.
To install bunqueue v2.4.3
Section titled “To install bunqueue v2.4.3”bun add bunqueue@2.4.3npm install bunqueue@2.4.3To upgrade bunqueue
Section titled “To upgrade bunqueue”bun add bunqueue@latestBugfixes
Section titled “Bugfixes”- Batch push now wakes all waiting workers -
pushJobBatchpreviously callednotify()only once, causing only 1 of N waiting workers to wake up immediately. Others had to wait for their poll timeout (up to 30s with long-poll). Now each inserted job triggers a separate notification, waking all idle workers instantly. - Pending notifications counter -
WaiterManager.pendingNotificationwas a boolean flag, silently losing notifications when multiple pushes occurred with no waiting workers. Changed to an integer counter (pendingNotifications) so each notification is tracked and consumed individually.
Thanks to 1 contributor!
Section titled “Thanks to 1 contributor!”← bunqueue v2.4.2 · Release on GitHub · Commits since v2.4.2 · Full changelog · All posts