fix: BullMQ crashes when not setting Redis config maxRetriesPerRequest to null
This commit is contained in:
parent
d0aa27b2ad
commit
811a8261b3
@ -3,4 +3,8 @@ import { Redis } from "ioredis";
|
|||||||
const host = process.env.REDIS_HOST || "localhost";
|
const host = process.env.REDIS_HOST || "localhost";
|
||||||
const port = parseInt(process.env.REDIS_PORT) || 6379;
|
const port = parseInt(process.env.REDIS_PORT) || 6379;
|
||||||
|
|
||||||
export const redis = new Redis(port, host);
|
export const redis = new Redis({
|
||||||
|
port: port,
|
||||||
|
host: host,
|
||||||
|
maxRetriesPerRequest: null,
|
||||||
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user