-
I'm having some trouble running BullMQ on MemoryDB. I followed the redis cluster pattern, adding the I can see my queues in the cluster:
But I still get the following error:
This is just my assumption, but should I add the My connections are declared as the following: const queueRedisConnection =
process.env.NODE_ENV === "production"
? new Redis.Cluster([{ host: Env.get("REDIS_URL") }], {
clusterRetryStrategy: () => null,
enableReadyCheck: true,
enableOfflineQueue: false,
showFriendlyErrorStack: true,
redisOptions: {
tls: {
checkServerIdentity: () => undefined,
},
username: "",
password: "",
},
})
: new Redis(Env.get("REDIS_URL"), queueRedisOptions);
const workerRedisConnection =
process.env.NODE_ENV === "production"
? new Redis.Cluster([{ host: Env.get("REDIS_URL") }], {
clusterRetryStrategy: () => null,
enableReadyCheck: true,
enableOfflineQueue: true,
showFriendlyErrorStack: true,
redisOptions: {
tls: {
checkServerIdentity: () => undefined,
},
username: "",
password: "",
},
})
: new Redis(Env.get("REDIS_URL"), workerRedisOptions); |
Beta Was this translation helpful? Give feedback.
Answered by
manast
Sep 13, 2023
Replies: 1 comment 2 replies
-
You need to add the prefix on the Queue and Worker instances. |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
nullndr
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You need to add the prefix on the Queue and Worker instances.