Skip to content
Get started
Get started
bunqueue v2.6.5
View Markdown
blog · release

bunqueue v2.6.5

Fixes 2 bugs. Typed event overloads for 'log' event on SandboxedWorker (on/once).

bun add bunqueue@2.6.5
npm install bunqueue@2.6.5
bun add bunqueue@latest
  • Typed event overloads for 'log' event on SandboxedWorker (on/once)
  • Regression tests for both issues (test/issue29-sandboxed-log.test.ts, test/issue30-dlq-stall.test.ts)
  • SandboxedWorker log event not emitted: The processor’s job.log() method stored logs via addLog() but the SandboxedWorker never emitted a 'log' event. Listeners registered with .on('log', ...) were never called. Now properly emits (job, message) on each log call. (#29)
  • SandboxedWorker embedded heartbeats missing: In embedded mode, sendHeartbeat was a no-op and heartbeatInterval defaulted to 0 (timer never started). Long-running jobs without progress() calls were detected as stalled and moved to DLQ despite still running. Now sendHeartbeat calls manager.jobHeartbeat() and defaults to 5000ms. (#30)
  • Updated SandboxedWorker processor example with log(), fail(), and parentId fields
  • Fixed heartbeatInterval default from 0 to 5000 in embedded mode docs
  • Added log event to SandboxedWorker Event Reference (8 events total)
  • Added SandboxedWorker section to Stall Detection guide
  • Updated SandboxedWorkerOptions type with heartbeatInterval and connection fields

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