# bunqueue v2.6.96

Fixes 1 bug. Job state race condition in TCP mode: getJobState() inside the completed event callback now correctly returns completed instead of active (fixes #72).

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

---

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

Fixes 1 bug. Job state race condition in TCP mode: getJobState() inside the completed event callback now correctly returns completed instead of active (fixes #72).

#### To install bunqueue v2.6.96

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

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

#### To upgrade bunqueue

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

## Bugfixes

- **Job state race condition in TCP mode**: `getJobState()` inside the `completed` event callback now correctly returns `completed` instead of `active` (fixes #72). Root cause: ACK was fire-and-forget (`void`), so the event was emitted before the server processed the acknowledgment.

---

[← bunqueue v2.6.95](https://bunqueue.dev/blog/bunqueue-v2-6-95/) · [Full changelog](https://bunqueue.dev/changelog/) · [All posts](https://bunqueue.dev/blog/)
