fix: Queue health monitor should only run on worker processes (#6228)
This commit is contained in:
@@ -42,7 +42,7 @@ export default class RedisAdapter extends Redis {
|
||||
*/
|
||||
const connectionNamePrefix = env.isDevelopment ? process.pid : "outline";
|
||||
const connectionName =
|
||||
`${connectionNamePrefix}:${env.SERVICES.replace(/,/g, "-")}` +
|
||||
`${connectionNamePrefix}:${env.SERVICES.join("-")}` +
|
||||
(connectionNameSuffix ? `:${connectionNameSuffix}` : "");
|
||||
|
||||
if (!url || !url.startsWith("ioredis://")) {
|
||||
|
||||
Reference in New Issue
Block a user