Skip to content

[_]: fix/add cache retry strategy#360

Merged
xabg2 merged 5 commits intomasterfrom
fix/add-cache-retry-strategy
Mar 10, 2026
Merged

[_]: fix/add cache retry strategy#360
xabg2 merged 5 commits intomasterfrom
fix/add-cache-retry-strategy

Conversation

@xabg2
Copy link
Collaborator

@xabg2 xabg2 commented Mar 9, 2026

This change replaces the strategy with a proper retry mechanism that uses incremental backoff (up to 30 seconds) and gives up after 10 failed attempts, logging an error when the limit is reached. Additionally, maxRetriesPerRequest is set to 3 so individual commands don't hang indefinitely waiting for a dead connection.

@xabg2 xabg2 self-assigned this Mar 9, 2026
@xabg2 xabg2 added the enhancement New feature or request label Mar 9, 2026
@xabg2 xabg2 marked this pull request as ready for review March 10, 2026 09:07
@xabg2 xabg2 requested review from jzunigax2 and sg-gs as code owners March 10, 2026 09:07
return Math.min(times * 500, 30000);
},
enableOfflineQueue: false,
keepAlive: 5000,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Leave this as 10s, so in case of punctual instability, the connection is not cut by being too strict.

@sonarqubecloud
Copy link

@xabg2 xabg2 merged commit d5a1355 into master Mar 10, 2026
11 checks passed
@xabg2 xabg2 deleted the fix/add-cache-retry-strategy branch March 10, 2026 09:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request ready-for-preview

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants