cloudiful-scheduler 0.4.2

Single-job async scheduling library for background work with optional Valkey-backed state.
Documentation
1
2
3
4
5
6
7
8
9
local paused = redis.call('HGET', KEYS[1], ARGV[1])
if not paused then
    return 0
end
if paused == '1' or paused == 'true' then
    return 0
end
redis.call('HSET', KEYS[1], ARGV[1], '1')
return 1