# bunqueue v2.6.98

Fixes 1 bug. Cron overlap prevention: added preventOverlap option (default: true) that automatically deduplicates cron-fired jobs.

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

---

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

Fixes 1 bug. Cron overlap prevention: added preventOverlap option (default: true) that automatically deduplicates cron-fired jobs.

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

#### To install bunqueue v2.6.98

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

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

#### To upgrade bunqueue

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

## Bugfixes

- **Cron overlap prevention**: added `preventOverlap` option (default: `true`) that automatically deduplicates cron-fired jobs. When a cron interval is shorter than the job processing time, the scheduler no longer pushes duplicate jobs to the queue. This prevents the "starts right away on restart" issue where accumulated jobs would fire immediately when a worker reconnects (fixes #73).

## Thanks to 1 contributor!

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

---

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