Open jinsuojinsuo opened 2 years ago
@jinsuojinsuo It is delayed when all queues are empty. I think it makes sense
I did some benchmarking around this issue here #506
It impacts the average time to execution for tasks. However lowering the sleep will increase the idle CPU usage of Redis. I also tested an alternative approach that can change the sleep period depending on how busy the queue is here. It will lower the latency of time to execution at the cost of more complicated code.
It could be added as an optional param that defaults to 1 second.
Why does time fluctuate
It is recommended to make it configurable