Skip to content
Get started
Get started
bunqueue v2.4.7
View Markdown
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.

  • scripts/embedded/test-cron-event-driven.ts - Operational test verifying cron timer precision
  • Event-driven cron scheduler - Replaced 1s setInterval polling with precise setTimeout that wakes exactly when the next cron is due. Zero wasted ticks between executions:

    ScenarioBeforeAfter
    1 cron every 5min300 ticks/5min (299 wasted)1 tick/5min
    0 crons registered1 tick/sec (all wasted)0 ticks
    Cron in 3 hours10,800 wasted ticks1 tick at exact time
  • A 60s setInterval safety fallback catches edge cases (timer drift, missed events). Zero functional changes, zero API changes.


← bunqueue v2.4.6 · Release on GitHub · Commits since v2.4.6 · Full changelog · All posts