bunqueue v2.6.105
blog · release
bunqueue v2.6.105
Fixes 1 bug. skipIfNoWorker now ignores stale workers: getForQueue() was returning ALL registered workers regardless of heartbeat status.
To install bunqueue v2.6.105
Section titled “To install bunqueue v2.6.105”bun add bunqueue@2.6.105npm install bunqueue@2.6.105To upgrade bunqueue
Section titled “To upgrade bunqueue”bun add bunqueue@latestBugfixes
Section titled “Bugfixes”skipIfNoWorkernow ignores stale workers:getForQueue()was returning ALL registered workers regardless of heartbeat status. When a client disconnected without clean TCP close (e.g., network issues between WSL and remote VPS), the worker remained registered as “stale” for up to 90 seconds. During this window,skipIfNoWorkerwould find the stale worker and push cron jobs. Now only workers with a recent heartbeat (withinWORKER_TIMEOUT_MS, default 30s) are counted (fixes #73).