Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Changed the set call to setex which takes the timeout parameter unlik…

…e set. Fixes the ArgumentError: Wrong number of arguments(3 for 2) error caused by the set call.
  • Loading branch information...
commit 00a4b76bc924cb10d89cf800f75f66edd7b97a5d 1 parent 4f6ae6c
@vijaydev authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/resque/resque.rb
View
2  lib/resque/resque.rb
@@ -20,7 +20,7 @@ def enqueue_with_throttle(klass, *args)
def should_throttle?(klass, *args)
return false if !throttle_job?(klass) || klass.disabled
return true if key_found?(klass, *args)
- redis.set(klass.key(*args), true, klass.can_run_every)
+ redis.setex(klass.key(*args), klass.can_run_every, true)
return false
end
Please sign in to comment.
Something went wrong with that request. Please try again.