sidekiq_toolbelt 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/sidekiq_toolbelt.rb +4 -4
- data/lib/sidekiq_toolbelt/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9cabf4b08c265f81ae2d37c010bea4095e6c2148
|
4
|
+
data.tar.gz: 24dfad92a631d6e7d8e1a6b83e3c37548043f841
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 606e5c2dcb2367e7fb694ad6ecbeb03bec73610daddf41991a6a6db67fbe4419c74f32ef87d640ca448a7800385a42761b071aab29167866e7c0e41e59136bcd
|
7
|
+
data.tar.gz: 6f896f84ae76a8ec6ae9c72a1f0afe9996cf0af864665dea861a128593fe72f4b6d4f267ce162ccc2f56feeec8a204e8f0c23cfda718019d6661db4df50bb035
|
data/lib/sidekiq_toolbelt.rb
CHANGED
@@ -17,9 +17,9 @@ module SidekiqToolbelt
|
|
17
17
|
pp counts.sort_by {|k,v| -v}.to_h
|
18
18
|
end
|
19
19
|
|
20
|
-
def kill(
|
20
|
+
def kill(job_name, queue: :default)
|
21
21
|
Sidekiq::Queue.new(queue).each do |job|
|
22
|
-
job.delete if job.klass.starts_with?(
|
22
|
+
job.delete if job.klass.starts_with?(job_name)
|
23
23
|
end
|
24
24
|
end
|
25
25
|
|
@@ -29,9 +29,9 @@ module SidekiqToolbelt
|
|
29
29
|
end
|
30
30
|
end
|
31
31
|
|
32
|
-
def kill_retries(
|
32
|
+
def kill_retries(job_name)
|
33
33
|
Sidekiq::RetrySet.new.each do |job|
|
34
|
-
job.delete if job.klass.starts_with?(
|
34
|
+
job.delete if job.klass.starts_with?(job_name)
|
35
35
|
end
|
36
36
|
end
|
37
37
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sidekiq_toolbelt
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Scott Albertson
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-07-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|