bunqueue v2.7.15
blog · release
bunqueue v2.7.15
Fixes 1 bug. Cron/scheduler jobs ignored job options (#86): Jobs spawned by upsertJobScheduler/cron always used JOB_DEFAULTS (maxAttempts: 3, removeOnFail: false), ignoring both the scheduler job template opts and the Queue…
To install bunqueue v2.7.15
Section titled “To install bunqueue v2.7.15”bun add bunqueue@2.7.15npm install bunqueue@2.7.15To upgrade bunqueue
Section titled “To upgrade bunqueue”bun add bunqueue@latestBugfixes
Section titled “Bugfixes”- Cron/scheduler jobs ignored job options (#86): Jobs spawned by
upsertJobScheduler/cron always usedJOB_DEFAULTS(maxAttempts: 3,removeOnFail: false), ignoring both the scheduler job templateoptsand the QueuedefaultJobOptions. A scheduler withattempts: 1, removeOnFail: truestill retried 3× and landed failed jobs in the DLQ. Cron definitions now carry ajobOptionsfield (maxAttempts,backoff,timeout,delay,stallTimeout,removeOnComplete,removeOnFail) thatfireCronJobforwards into each spawned job. The client merges QueuedefaultJobOptions(base) with per-scheduler templateopts(override), mappingattempts→maxAttempts. Persisted via newjob_optionscolumn (schema migration 12); old rows load asnulland fall back to defaults.
- For cron jobs,
removeOnComplete/removeOnFailhonor only the boolean form. The numeric/KeepJobsvariants accepted byqueue.add()are not applied to scheduler-spawned jobs and fall back tofalse. - A per-job
delayset in scheduler options stacks on top of the cron fire time (the spawned job is delayeddelayms after each scheduled fire).
Thanks to 1 contributor!
Section titled “Thanks to 1 contributor!”← bunqueue v2.7.14 · Release on GitHub · Commits since v2.7.14 · Full changelog · All posts