Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Use multi instead of pipelined.

  • Loading branch information...
commit bd87aed47279323d344cb051cbe0b5fb6433edfa 1 parent f8bd7fc
@myronmarston myronmarston authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/qless/queue.rb
View
2  lib/qless/queue.rb
@@ -72,7 +72,7 @@ def stats(date=nil)
# How many items in the queue?
def length
- (@client.redis.pipelined do
+ (@client.redis.multi do
@client.redis.zcard("ql:q:" + @name + "-locks")
@client.redis.zcard("ql:q:" + @name + "-work")
@client.redis.zcard("ql:q:" + @name + "-scheduled")
Please sign in to comment.
Something went wrong with that request. Please try again.