chaps-io / gush

Fast and distributed workflow runner using ActiveJob and Redis
MIT License
1.05k stars 106 forks source link

Allow RedisMutex’s locking duration and polling interval to be customizable #74

Closed thukim closed 2 years ago

thukim commented 5 years ago

Currently, RedisMutex's sleep and block options are fixed with these 2 values 0.3 and 2, respectively. When the number of jobs is large, we will frequently get the error RedisMutex::LockError. I have updated the code and opened this PR to make them customizable based on the number of jobs of a workflow. Additionally, it also helps to solve this issue https://github.com/chaps-io/gush/issues/57.

pokonski commented 2 years ago

Thank you!