Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

feat: changed to reconned and resend prop

=b6bc259b01f0
diff --git a/backend/src/lib/config/redis.ts b/backend/src/lib/config/redis.ts
index d67634f0ea..df787a7c95 100644
--- a/backend/src/lib/config/redis.ts
+++ b/backend/src/lib/config/redis.ts
@@ -25,7 +25,7 @@ export const buildRedisFromConfig = (cfg: TRedisConfigKeys) => {
// Reconnect when hitting a read-only replica during failover
const targetError = "READONLY";
if (err.message.includes(targetError)) {
- return true; // Reconnect
+ return 2; // Reconnect and resend command
}
return false;
}
@@ -45,7 +45,7 @@ export const buildRedisFromConfig = (cfg: TRedisConfigKeys) => {
reconnectOnError(err) {
const targetError = "READONLY";
if (err.message.includes(targetError)) {
- return true;
+ return 2; // Reconnect and resend command
}
return false;
}
@@ -67,7 +67,7 @@ export const buildRedisFromConfig = (cfg: TRedisConfigKeys) => {
// Reconnect when hitting a read-only replica during failover
const targetError = "READONLY";
if (err.message.includes(targetError)) {
- return true; // Reconnect
+ return 2; // Reconnect and resend command
}
return false;
}