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.
Currently, RedisMutex's
sleep
andblock
options are fixed with these 2 values 0.3 and 2, respectively. When the number of jobs is large, we will frequently get the errorRedisMutex::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.