taskforcesh / bullmq

BullMQ - Message Queue and Batch processing for NodeJS and Python based on Redis
https://bullmq.io
MIT License
5.47k stars 357 forks source link

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

Closed klaemo closed 1 month ago

klaemo commented 1 month ago

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