Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Use the database while trying to reconnect to Redis #1669

Merged
merged 6 commits into from
Jul 18, 2024

Conversation

hugotiburtino
Copy link
Member

@hugotiburtino hugotiburtino commented Jul 12, 2024

Besides that, it keeps logging to Sentry, which should warn us.

@hugotiburtino hugotiburtino marked this pull request as draft July 12, 2024 10:10
@hugotiburtino hugotiburtino requested a review from kulla July 17, 2024 08:35
@hugotiburtino hugotiburtino marked this pull request as ready for review July 17, 2024 08:36
})

const lockManagers: Record<Priority, LockManager> = {
[Priority.Low]: createLockManager({
retryCount: 0,
}),
[Priority.High]: createLockManager({
retryCount: 10,
retryCount: 5,
Copy link
Member Author

Choose a reason for hiding this comment

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

The retry was reduced (also at line 31 maxRetriesPerRequest: 3, it is by default 20) in order that the user don't wait that much

error,
location: 'Cache lockManager',
})
client.disconnect()
Copy link
Member Author

Choose a reason for hiding this comment

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

Since it will keep logging from the line 34, we don't need two or three sentry events for the same problem, so, disconnecting stop logging from the lock manager.

@hugotiburtino hugotiburtino linked an issue Jul 17, 2024 that may be closed by this pull request
@hugotiburtino hugotiburtino merged commit 1f27bb7 into staging Jul 18, 2024
9 checks passed
@hugotiburtino hugotiburtino deleted the redis-harderning branch July 18, 2024 06:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

API is still breaking when redis fails
1 participant