From d72068eb9905903ce776a60a3754cd7b0071c167 Mon Sep 17 00:00:00 2001 From: BOHEUS <56270748+BOHEUS@users.noreply.github.com> Date: Wed, 13 Nov 2024 18:38:29 +0000 Subject: [PATCH] Fix BullMQ deprecation warning (#8486) Related to #8470 --- .../engine/core-modules/redis-client/redis-client.service.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/twenty-server/src/engine/core-modules/redis-client/redis-client.service.ts b/packages/twenty-server/src/engine/core-modules/redis-client/redis-client.service.ts index f721371b88..57297323e8 100644 --- a/packages/twenty-server/src/engine/core-modules/redis-client/redis-client.service.ts +++ b/packages/twenty-server/src/engine/core-modules/redis-client/redis-client.service.ts @@ -18,7 +18,9 @@ export class RedisClientService implements OnModuleDestroy { throw new Error('REDIS_URL must be defined'); } - this.redisClient = new IORedis(redisUrl); + this.redisClient = new IORedis(redisUrl, { + maxRetriesPerRequest: null, + }); } return this.redisClient;