summaryrefslogtreecommitdiff
path: root/queue/zset/run.rb
diff options
context:
space:
mode:
Diffstat (limited to 'queue/zset/run.rb')
-rwxr-xr-xqueue/zset/run.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/queue/zset/run.rb b/queue/zset/run.rb
index 2fc861c..b6990ff 100755
--- a/queue/zset/run.rb
+++ b/queue/zset/run.rb
@@ -10,7 +10,7 @@ def fetch(timeout = 1)
job = nil
loop do
- job = @redis.ZREVRANGE('zset', '0', '0')
+ job = @redis.ZRANGE('zset', '0', '0')
if !job.empty?
# We only have one entry in our array