Closed hwayne closed 7 years ago
👍
Can you add a short test for this please?
More testing shows that redis does not do rollbacks, so this bug only means that the queue won't expire naturally (an optimization). Will provide tests, but this might be on the backburner for me for a few days, sorry :(
On line #40
limit
usesredis_rate_limiter
to callEXPIRE
with interval as a parameter. SinceEXPIRE
only accepts integers, this causeslim.add
to fail. Sinceredis_rate_limiter
use amulti
block,lim.add
fails silently instead of raising an error:This means that nothing is added to the rate limit queue, so no jobs are actually rate limited. This PR fixes this bug by casting to an integer instead of a float.