From c9a8ec8c244b47f55142966d89a209ec2db94542 Mon Sep 17 00:00:00 2001 From: Manuel Astudillo Date: Fri, 3 Feb 2023 15:01:07 +0100 Subject: [PATCH 1/2] fix(redis): increase minimum default retry time --- src/classes/redis-connection.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/classes/redis-connection.ts b/src/classes/redis-connection.ts index 9ad737055f..366e095d1f 100644 --- a/src/classes/redis-connection.ts +++ b/src/classes/redis-connection.ts @@ -60,7 +60,7 @@ export class RedisConnection extends EventEmitter { port: 6379, host: '127.0.0.1', retryStrategy: function (times: number) { - return Math.min(Math.exp(times), 20000); + return Math.max(Math.min(Math.exp(times), 20000), 1000); }, ...opts, }; From 7bf3923fcc7cd974e06e2274e7ec47c8607a32fc Mon Sep 17 00:00:00 2001 From: Manuel Astudillo Date: Fri, 3 Feb 2023 15:02:07 +0100 Subject: [PATCH 2/2] chore: upgrade ioredis --- package.json | 2 +- yarn.lock | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index aaa20babe4..200dc1c460 100644 --- a/package.json +++ b/package.json @@ -51,7 +51,7 @@ "dependencies": { "cron-parser": "^4.6.0", "glob": "^8.0.3", - "ioredis": "^5.2.2", + "ioredis": "^5.3.0", "lodash": "^4.17.21", "msgpackr": "^1.6.2", "semver": "^7.3.7", diff --git a/yarn.lock b/yarn.lock index 752e18c790..b3a365167a 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3778,7 +3778,7 @@ into-stream@^6.0.0: from2 "^2.3.0" p-is-promise "^3.0.0" -ioredis@^5.2.2: +ioredis@^5.3.0: version "5.3.0" resolved "https://registry.yarnpkg.com/ioredis/-/ioredis-5.3.0.tgz#b5469f0fd374648ef074840c00c1d8eed42fca3f" integrity sha512-Id9jKHhsILuIZpHc61QkagfVdUj2Rag5GzG1TGEvRNeM7dtTOjICgjC+tvqYxi//PuX2wjQ+Xjva2ONBuf92Pw==