resque-workers-lock 1.0.7 → 1.0.8

Sign up to get free protection for your applications and to get access to all the features.
@@ -42,6 +42,11 @@ module Resque
42
42
  end
43
43
  end
44
44
  end
45
+
46
+ def after_dequeue_lock(*args)
47
+ # Clear the lock when dequeueed
48
+ Resque.redis.del(lock_enqueue(*args).to_s)
49
+ end
45
50
 
46
51
  def around_perform_lock(*args)
47
52
  begin
metadata CHANGED
@@ -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.7
4
+ version: 1.0.8
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-07-26 00:00:00.000000000 Z
12
+ date: 2012-07-27 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: resque