bunqueue v2.6.5
blog · release
bunqueue v2.6.5
Fixes 2 bugs. Typed event overloads for 'log' event on SandboxedWorker (on/once).
To install bunqueue v2.6.5
Section titled “To install bunqueue v2.6.5”bun add bunqueue@2.6.5npm install bunqueue@2.6.5To upgrade bunqueue
Section titled “To upgrade bunqueue”bun add bunqueue@latestWhat’s new
Section titled “What’s new”- 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)
Bugfixes
Section titled “Bugfixes”- SandboxedWorker
logevent not emitted: The processor’sjob.log()method stored logs viaaddLog()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,
sendHeartbeatwas a no-op andheartbeatIntervaldefaulted to 0 (timer never started). Long-running jobs withoutprogress()calls were detected as stalled and moved to DLQ despite still running. NowsendHeartbeatcallsmanager.jobHeartbeat()and defaults to 5000ms. (#30)
Documentation
Section titled “Documentation”- Updated SandboxedWorker processor example with
log(),fail(), andparentIdfields - Fixed
heartbeatIntervaldefault from0to5000in embedded mode docs - Added
logevent to SandboxedWorker Event Reference (8 events total) - Added SandboxedWorker section to Stall Detection guide
- Updated SandboxedWorkerOptions type with
heartbeatIntervalandconnectionfields
Thanks to 1 contributor!
Section titled “Thanks to 1 contributor!”← bunqueue v2.6.4 · Release on GitHub · Commits since v2.6.4 · Full changelog · All posts