# bunqueue v2.4.2

CPU-Intensive Workers guide, CPU stress test script.

Canonical: https://bunqueue.dev/blog/bunqueue-v2-4-2/

---

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

CPU-Intensive Workers guide, CPU stress test script.

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

#### To install bunqueue v2.4.2

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

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

#### To upgrade bunqueue

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

## CPU-Intensive Workers guide

New dedicated docs page for handling CPU-heavy jobs over TCP
- Explains the ping health check failure chain that causes job loss after ~90s of CPU load
- Connection tuning: `pingInterval: 0`, `commandTimeout: 60000`
- Non-blocking CPU patterns with `await Bun.sleep(0)` yield
- Default timeouts reference table
- SandboxedWorker as alternative for truly CPU-bound work

## CPU stress test script

`scripts/stress-cpu-intensive.ts` (500 jobs, 5 CPU task types, concurrency 3)

## Thanks to 1 contributor!

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

---

[← bunqueue v2.4.1](https://bunqueue.dev/blog/bunqueue-v2-4-1/) · [Release on GitHub](https://github.com/egeominotti/bunqueue/releases/tag/v2.4.2) · [Commits since v2.4.1](https://github.com/egeominotti/bunqueue/compare/v2.4.1...v2.4.2) · [Full changelog](https://bunqueue.dev/changelog/) · [All posts](https://bunqueue.dev/blog/)
