# 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.

Canonical: https://bunqueue.dev/blog/bunqueue-v2-6-24/

---

<!-- Generated from changelog.md by docs/scripts/generate-release-posts.ts. Edit the changelog and regenerate. -->

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.

![](https://github.com/egeominotti.png?size=64) [egeominotti](https://github.com/egeominotti)

#### To install bunqueue v2.6.24

```bash title="bun"
bun add bunqueue@2.6.24
```

```bash title="npm"
npm install bunqueue@2.6.24
```

#### To upgrade bunqueue

```bash
bun add bunqueue@latest
```

## 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

New endpoint to list workers registered for a specific queue.

## `GET /queues/:q/dlq/stats` endpoint

Server-side DLQ stats aggregation: `total`, `byReason`, `pendingRetry`, `oldestEntry`.

## 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`

Added `pushPerSec`, `pullPerSec`, `completePerSec`, `failPerSec` from the built-in throughput tracker.

## Bugfixes

- **Per-queue completed count**: `GET /queues/:q/counts` `completed` field 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/dlq` now returns `DlqEntry[]` with `enteredAt`, `reason`, `error`, `retryCount`, `lastRetryAt`, `nextRetryAt`, `expiresAt` instead of raw `Job[]`.
- **Worker registration accepts `queue` (singular)**: `POST /workers` now accepts both `queue` (string) and `queues` (array), plus `workerId` as alias for `name`.

## Thanks to 1 contributor!

- [@egeominotti](https://github.com/egeominotti)

---

[← bunqueue v2.6.23](https://bunqueue.dev/blog/bunqueue-v2-6-23/) · [Release on GitHub](https://github.com/egeominotti/bunqueue/releases/tag/v2.6.24) · [Commits since v2.6.23](https://github.com/egeominotti/bunqueue/compare/v2.6.23...v2.6.24) · [Full changelog](https://bunqueue.dev/changelog/) · [All posts](https://bunqueue.dev/blog/)
