bunqueue v2.6.66
blog · release
bunqueue v2.6.66
Fixes 1 bug. Deduplication not working for JobScheduler (Issue #60): upsertJobScheduler accepted deduplication options in the JobTemplate but silently discarded them.
To install bunqueue v2.6.66
Section titled “To install bunqueue v2.6.66”bun add bunqueue@2.6.66npm install bunqueue@2.6.66To upgrade bunqueue
Section titled “To upgrade bunqueue”bun add bunqueue@latestBugfixes
Section titled “Bugfixes”- Deduplication not working for JobScheduler (Issue #60):
upsertJobScheduleraccepted deduplication options in theJobTemplatebut silently discarded them. The cron system (CronJob,CronJobInput,cronScheduler) had no fields foruniqueKeyordedup, so every cron tick created a new job regardless of deduplication settings. Now dedup options are stored in the cron job (including SQLite persistence with schema migration v6) and passed through topushJob()on each tick. When a worker is slow or offline, only one job per dedup key exists instead of unbounded duplicates.