bunqueue v2.4.7
blog · release
bunqueue v2.4.7
Ships 2 performance improvements and 1 addition. Event-driven cron scheduler - Replaced 1s setInterval polling with precise setTimeout that wakes exactly when the next cron is due.
What’s new
Section titled “What’s new”scripts/embedded/test-cron-event-driven.ts- Operational test verifying cron timer precision
Performance
Section titled “Performance”-
Event-driven cron scheduler - Replaced 1s
setIntervalpolling with precisesetTimeoutthat wakes exactly when the next cron is due. Zero wasted ticks between executions:Scenario Before After 1 cron every 5min 300 ticks/5min (299 wasted) 1 tick/5min 0 crons registered 1 tick/sec (all wasted) 0 ticks Cron in 3 hours 10,800 wasted ticks 1 tick at exact time -
A 60s
setIntervalsafety fallback catches edge cases (timer drift, missed events). Zero functional changes, zero API changes.
Thanks to 1 contributor!
Section titled “Thanks to 1 contributor!”← bunqueue v2.4.6 · Release on GitHub · Commits since v2.4.6 · Full changelog · All posts