# bunqueue v2.6.42

Fixes 1 bug and ships 1 performance improvement. Cloud: two-tier snapshot collection: Light data (stats, throughput, latency, memory) collected every 5s at O(SHARD_COUNT).

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

---

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

Fixes 1 bug and ships 1 performance improvement. Cloud: two-tier snapshot collection: Light data (stats, throughput, latency, memory) collected every 5s at O(SHARD_COUNT).

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

#### To install bunqueue v2.6.42

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

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

#### To upgrade bunqueue

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

## Performance

- **Cloud: two-tier snapshot collection**: Light data (stats, throughput, latency, memory) collected every 5s at O(SHARD_COUNT). Heavy data (recentJobs, dlqEntries, topErrors, workerDetails, queueConfigs, webhooks) collected every 30s and cached between refreshes. Heavy collectors skip empty queues (only iterate queues with waiting/active/dlq > 0). Eliminated double `getQueueJobCounts()` pass.

## Bugfixes

- **Cloud: totalCompleted/totalFailed per queue**: Was sending in-memory BoundedSet count (resets when full). Now sends cumulative counters from `perQueueMetrics` (never resets).

## Thanks to 1 contributor!

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

---

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