bunqueue v2.6.24
blog · release
bunqueue v2.6.24
Fixes 3 bugs. Per-queue totalCompleted/totalFailed counters, GET /queues/:q/workers endpoint, GET /queues/:q/dlq/stats endpoint, worker concurrency, status, currentJob fields and more.
To install bunqueue v2.6.24
Section titled “To install bunqueue v2.6.24”bun add bunqueue@2.6.24npm install bunqueue@2.6.24To upgrade bunqueue
Section titled “To upgrade bunqueue”bun add bunqueue@latestPer-queue totalCompleted/totalFailed counters
Section titled “Per-queue totalCompleted/totalFailed counters”GET /queues/:q/counts now includes cumulative per-queue counters for completed and failed jobs.
GET /queues/:q/workers endpoint
Section titled “GET /queues/:q/workers endpoint”New endpoint to list workers registered for a specific queue.
GET /queues/:q/dlq/stats endpoint
Section titled “GET /queues/:q/dlq/stats endpoint”Server-side DLQ stats aggregation: total, byReason, pendingRetry, oldestEntry.
Worker concurrency, status, currentJob fields
Section titled “Worker concurrency, status, currentJob fields”GET /workers and POST /workers responses now include concurrency, computed status (active/stale), and currentJob.
Throughput rates in GET /stats
Section titled “Throughput rates in GET /stats”Added pushPerSec, pullPerSec, completePerSec, failPerSec from the built-in throughput tracker.
Bugfixes
Section titled “Bugfixes”- Per-queue completed count:
GET /queues/:q/countscompletedfield now counts only jobs completed in the requested queue instead of returning the global total across all queues. - DLQ endpoint returns full metadata:
GET /queues/:q/dlqnow returnsDlqEntry[]withenteredAt,reason,error,retryCount,lastRetryAt,nextRetryAt,expiresAtinstead of rawJob[]. - Worker registration accepts
queue(singular):POST /workersnow accepts bothqueue(string) andqueues(array), plusworkerIdas alias forname.
Thanks to 1 contributor!
Section titled “Thanks to 1 contributor!”← bunqueue v2.6.23 · Release on GitHub · Commits since v2.6.23 · Full changelog · All posts