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

fix(python): increase redis retry strategy backoff #2546

Merged
merged 2 commits into from
Apr 26, 2024

Conversation

klaemo
Copy link
Contributor

@klaemo klaemo commented Apr 26, 2024

As you can see in the redis-py docs the ExponentialBackoff starts with 8ms and ramps up to only 512ms. Paired with only three retries this makes it fail very quickly.

I increased the values to start with 1s and ramp up to 20s. Also, increased the retries to 20. I think this brings it closer to the JavaScript library.

Related to my issue: #2542

@klaemo klaemo changed the title python: increase redis retry strategy backoff fix(python): increase redis retry strategy backoff Apr 26, 2024
Copy link
Collaborator

@roggervalf roggervalf left a comment

Choose a reason for hiding this comment

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

Lgtm

@roggervalf roggervalf merged commit 6cf7712 into taskforcesh:master Apr 26, 2024
11 checks passed
github-actions bot pushed a commit that referenced this pull request Apr 27, 2024
## [5.7.6](v5.7.5...v5.7.6) (2024-04-27)

### Bug Fixes

* **redis-connection:** increase redis retry strategy backoff ([#2546](#2546)) [python] ([6cf7712](6cf7712))

### Performance Improvements

* **worker:** do not call bzpopmin when blockDelay is lower or equal 0 ([#2544](#2544)) ref [#2466](#2466) ([9760b85](9760b85))
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.

None yet

2 participants