From 6c2562681096a75b8637c2e1eb81473e25ea293a Mon Sep 17 00:00:00 2001 From: Stephen Russett Date: Sat, 17 May 2014 16:52:01 -0400 Subject: [PATCH] Added scheduled Date query for getting the score of the scheduled JID --- job.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/job.lua b/job.lua index 9098015..f5f1943 100644 --- a/job.lua +++ b/job.lua @@ -37,7 +37,9 @@ function QlessJob:data(...) dependents = redis.call( 'smembers', QlessJob.ns .. self.jid .. '-dependents'), dependencies = redis.call( - 'smembers', QlessJob.ns .. self.jid .. '-dependencies') + 'smembers', QlessJob.ns .. self.jid .. '-dependencies'), + scheduleddate = tonumber(redis.call( + 'zscore', 'ql:q:' .. job[4] .. '-scheduled', self.jid)) or 0 } if #arg > 0 then