-- KEYS[1]: the job data hash
-- KEYS[2]: the scheduled set
-- ARGV[1]: the job ID
-- ARGV[2]: the serialized job data
-- ARGV[3]: the time to schedule the job
-- Returns: 1 if the job was newly scheduled, 0 if it already exists
-- delete the job to keep track of context
redis.
-- Set job data in hash
local set = redis.
redis.
return set