bunqueue v2.6.38
Worker registration + heartbeat system, registerWorkerCommand extended, heartbeatCommand extended, onOutcome callback in processor.
To install bunqueue v2.6.38
Section titled “To install bunqueue v2.6.38”bun add bunqueue@2.6.38npm install bunqueue@2.6.38To upgrade bunqueue
Section titled “To upgrade bunqueue”bun add bunqueue@latestRemoved
Section titled “Removed”- Flaky embedded tests (sandboxed-workers, cron-event-driven, query-operations)
Worker registration + heartbeat system
Section titled “Worker registration + heartbeat system”Worker SDK now auto-registers with the server on run(), sends periodic heartbeats with activeJobs/processed/failed stats, and unregisters on close(). The server tracks hostname, pid, uptime per worker. GET /workers and ListWorkers TCP command return full worker details including aggregate stats. Dashboard receives real-time events (worker:connected, worker:heartbeat, worker:disconnected).
RegisterWorkerCommand extended
Section titled “RegisterWorkerCommand extended”Accepts workerId, hostname, pid, startedAt from client. Re-registration with same workerId updates instead of duplicating.
HeartbeatCommand extended
Section titled “HeartbeatCommand extended”Accepts activeJobs, processed, failed to sync client-side stats to server.
onOutcome callback in processor
Section titled “onOutcome callback in processor”Tracks completed/failed counts without adding event listeners.