bunqueue v2.6.87
blog · release
bunqueue v2.6.87
Fixes 1 bug. skipIfNoWorker not working on restart (#67), when a cron job had skipIfNoWorker: true and the server restarted with past-due nextRun, the missed cron fired immediately because workers reconnected before the scheduler tick.
To install bunqueue v2.6.87
Section titled “To install bunqueue v2.6.87”bun add bunqueue@2.6.87npm install bunqueue@2.6.87To upgrade bunqueue
Section titled “To upgrade bunqueue”bun add bunqueue@latestBugfixes
Section titled “Bugfixes”skipIfNoWorkernot working on restart (#67), when a cron job hadskipIfNoWorker: trueand the server restarted with past-duenextRun, the missed cron fired immediately because workers reconnected before the scheduler tick. Theload()method now recalculatesnextRunto the next future occurrence whenskipIfNoWorkeris enabled, preventing missed cron executions on restart.