Skip to content

Conversation

@bountx
Copy link

@bountx bountx commented Nov 14, 2025

Description:

This PR improves Redis functionality by adding a retry wrapper with back-off mechanism resulting in maintaining connections that would otherwise error due to temporary failures.

PR Checklist:

  • Code is formatted and linted (run pre-commit run --all-files)
  • Tests pass (run make test)
  • Documentation has been updated to reflect changes, if applicable
  • Changes are added to the changelog

return v


class RedisRetrySettings(BaseSettings):
Copy link
Collaborator

@Gomez324 Gomez324 Nov 14, 2025

Choose a reason for hiding this comment

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

You can create a parent class that both RedisSentinelSettings and RedisSettings will inherit from. This way we won't need to keep another class in memory. You can also move the common elements from the child classes to the parent class

Copy link
Collaborator

@Gomez324 Gomez324 left a comment

Choose a reason for hiding this comment

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

I just have one suggestion

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.

2 participants