RubyGems
npm
Organizations
Log in
Sign up
RubyGems
resque-workers-lock
Versions diffs
1.0.1 → 1.0.2
resque-workers-lock 1.0.1 → 1.0.2
Sign up to get
free
protection for your applications and to get access to all the features.
Files changed (2)
hide
show
data/lib/resque/plugins/workers/lock.rb
+5
-0
metadata
+1
-1
data/lib/resque/plugins/workers/lock.rb
CHANGED
Viewed
@@ -28,6 +28,11 @@ module Resque
28
28
Resque.redis.del(lock(*args))
29
29
end
30
30
end
31
+
32
+
def on_failure_lock(*args)
33
+
# Clear the lock on DirtyExit
34
+
Resque.redis.del(lock(*args))
35
+
end
31
36
end
32
37
end
33
38
end
metadata
CHANGED
Viewed
@@ -1,7 +1,7 @@
1
1
--- !ruby/object:Gem::Specification
2
2
name: resque-workers-lock
3
3
version: !ruby/object:Gem::Version
4
-
version: 1.0.
1
4
+
version: 1.0.
2
5
5
prerelease:
6
6
platform: ruby
7
7
authors: