Repository navigation
release: v1.0.0-alpha.24 - #58
Merged
Merged
Conversation
release: v1.0.0-alpha.23
Local dev and production both point at the same Upstash Redis instance (same REDIS_HOST/TOKEN, copied from local .env into the server's for convenience during launch verification), and both construct the "analysis-queue" BullMQ queue/worker with no prefix — so they collide on the exact same Redis keys. A 3-day-old local `nuxt dev` process (which runs the worker in-process, since DISABLE_WORKER is unset there) was racing production's dedicated worker container for the same jobs. Discovered live during plan 13-04's LAUNCH-01 verification: BullMQ's own job history showed both test jobs completed successfully, but the production worker container's logs never mentioned them at all — some other consumer claimed and failed them before production's worker got a chance. Adds a `prefix` (BullMQ's built-in Redis key namespacing) derived from NODE_ENV: "prod" in production, "dev" everywhere else. Both the Queue (server/utils/queue.ts) and the Worker (server/plugins/worker.ts) must use the same prefix to see each other's jobs, so it's exported as a single shared constant rather than duplicated.
…ronment fix(worker): namespace BullMQ queue per environment (prod vs dev)
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.
Fixed
Deploy notes
Fourth same-day hotfix, following v1.0.0-alpha.20/21/22/23.