Skip to content

Commit 3d55db1

Browse files
committed
revert(redis): restore original retryStrategy logging
1 parent 0dfc2b5 commit 3d55db1

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

apps/sim/lib/core/config/redis.ts

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -89,13 +89,7 @@ export function getRedisClient(): Redis | null {
8989

9090
retryStrategy: (times) => {
9191
if (times > 10) {
92-
// Log at the transition point and every 20 attempts (~10 min) to avoid unbounded log volume
93-
if (times === 11 || times % 20 === 0) {
94-
logger.error('Redis reconnection stalled — retrying every 30s', {
95-
attempt: times,
96-
nextRetryMs: 30000,
97-
})
98-
}
92+
logger.error(`Redis reconnection attempt ${times}`, { nextRetryMs: 30000 })
9993
return 30000
10094
}
10195
const base = Math.min(1000 * 2 ** (times - 1), 10000)

0 commit comments

Comments
 (0)