# bunqueue v1.9.1

Fixes 2 bugs. Two-Phase Stall Detection.

Canonical: https://bunqueue.dev/blog/bunqueue-v1-9-1/

---

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

Fixes 2 bugs. Two-Phase Stall Detection.

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

#### To install bunqueue v1.9.1

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

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

#### To upgrade bunqueue

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

## Two-Phase Stall Detection

BullMQ-style stall detection to prevent false positives
- Jobs marked as candidates on first check, confirmed stalled on second
- Prevents requeuing jobs that complete between checks

## More additions

- `stallTimeout` support in client push options
- Advanced health checks for TCP connections

## Changes

- Modularized client code into separate TCP, Worker, Queue, and Sandboxed modules

## Bugfixes

- Defensive checks and cleanup for TCP pool and worker
- Server banner alignment between CLI and main.ts

## Thanks to 1 contributor!

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

---

[← bunqueue v1.9.0](https://bunqueue.dev/blog/bunqueue-v1-9-0/) · [Commits since v1.9.0](https://github.com/egeominotti/bunqueue/compare/v1.9.0...v1.9.1) · [Full changelog](https://bunqueue.dev/changelog/) · [All posts](https://bunqueue.dev/blog/)
