Closed moteus closed 7 years ago
Here's what I get when I run your test case:
127.0.0.1:6379> eval "redis.call('set', 'a', math.huge) local a=redis.call('get', 'a') return {a, math.huge}" 0
1) "inf"
2) (integer) -9223372036854775808
Did you try this on Windows. On my Debian system and on Travis service I also get inf
. But on Windows
math.huge
value converts to 1.#INF
string.
I don't have a Windows machine to test on, so I guess I'll trust your output.
I found problem on my test installation (Windows Redis-3.0 x64).
redis.call( ..., math.huge ...)
convert value to1.INF#
string and I get error when I go to webhttp://localhost:5678/queues/test-queue/running
Qless::LuaScriptError at /queues/test-queue/running ERR min or max is not a float
App send this commands to redisSo I suggest replace
math.huge
to+inf
string like in this exampleUpadate Basic testcase