Repository navigation
fix(queue): BullMQ 6 job schedulers — nichedb.dev is down (boot crash since #241) - #242
Merged
Merged
Conversation
…adcaster Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…leJobs #241 moved to bullmq 6, which dropped repeatable jobs: getRepeatableJobs and removeRepeatableByKey are gone (boot crash: 'queue.getRepeatableJobs is not a function') and add(..., {repeat}) silently adds one plain job. installSchedules now upserts job schedulers and removes every scheduler the code does not name, which also clears the 5.x repeatables in Redis (verified against a real Redis: v6 lists them by key and removes them). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ralyodio
added a commit
that referenced
this pull request
Oct 26, 2026
) Re-lands #241 (reverted in #243) on top of #242, which ported installSchedules to upsertJobScheduler/getJobSchedulers/removeJobScheduler. Adds a Redis-backed test that runs installSchedules twice in a child process (fails on the old getRepeatableJobs code with 'is not a function'). bullmq 6, ioredis 6, simplewebauthn 14, coinpay 0.25; retention.js reads the raw client from queue.getBackend().client. Overrides sharp ^0.35.5, tmp ^0.2.6. biome 2.6 migrate; md/yaml left out of biome. Bun 1.4.4. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
nichedb.dev has been 502 since #241 deployed: the app crash-loops at boot with
queue.getRepeatableJobs is not a function. BullMQ 6 removed repeatable jobs, andadd(..., {repeat})now adds one plain job, so every ticker (ingest, scan, enrich, stats, gin, dumps, tlds, traffic) would also have stopped recurring.installSchedules→upsertJobSchedulerper spec (scheduleSpecs()), and it removes every scheduler the code doesn't name. That also clears the legacy 5.x repeatables in Redis, which v6 workers can't run. Verified against a real Redis 8: v5-created repeatables are listed bykeyand removed, and the new scheduler survives.broadcastSourceon TheSportsDB fixtures without a broadcaster.🤖 Generated with Claude Code