# bunqueue v2.6.106

Fixes 1 bug. Cron upsert now removes orphaned queued jobs: between client disconnect and reconnect, a cron tick could push a job while a stale worker was still within the heartbeat timeout window.

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

---

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

Fixes 1 bug. Cron upsert now removes orphaned queued jobs: between client disconnect and reconnect, a cron tick could push a job while a stale worker was still within the heartbeat timeout window.

#### To install bunqueue v2.6.106

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

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

#### To upgrade bunqueue

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

## Bugfixes

- **Cron upsert now removes orphaned queued jobs**: between client disconnect and reconnect, a cron tick could push a job while a stale worker was still within the heartbeat timeout window. This orphaned job would sit in the queue and be pulled immediately when a new worker connected. Now, `upsertJobScheduler` with `preventOverlap` removes any existing queued job with the cron's uniqueKey before re-registering the cron, ensuring a clean slate (fixes #73, code path 6/6).

---

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