sideq 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG +4 -0
- data/lib/sideq/dead.rb +4 -3
- data/lib/sideq/retries.rb +5 -4
- 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: 79c47ffba9ca72a096807c49e51f7de86d03d47c
|
4
|
+
data.tar.gz: 9dc142f6a300e5eb7bdc8875bb2e3b33e4d8658f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 32ae9c7cd67bbcb578f7107e16864a86812ebbd2ff6c726b03813523322e7b1a1867bbc18ee44272e98d0e97143ed376844f458e18b24e5bba2d42e14e161af2
|
7
|
+
data.tar.gz: 6c9abb4e714889683e02da490c9cea88ca80623d3b71d68006ffc9ae285438af333239ee150348be35e289c4d21ae7e2d56d2a3a69ac4bc4d708132855447d44
|
data/CHANGELOG
CHANGED
data/lib/sideq/dead.rb
CHANGED
@@ -33,7 +33,7 @@ module Sideq
|
|
33
33
|
deleted = 0
|
34
34
|
each_job( job_ids ) do |job|
|
35
35
|
job.delete
|
36
|
-
puts "#{
|
36
|
+
puts "#{job.jid}: deleted"
|
37
37
|
deleted += 1
|
38
38
|
end
|
39
39
|
puts "Dead Set: Deleted #{deleted} entries"
|
@@ -43,7 +43,7 @@ module Sideq
|
|
43
43
|
retried = 0
|
44
44
|
each_job( job_ids ) do |job|
|
45
45
|
job.retry
|
46
|
-
puts "#{
|
46
|
+
puts "#{job.jid}: retrying"
|
47
47
|
retried += 1
|
48
48
|
end
|
49
49
|
|
@@ -51,7 +51,8 @@ module Sideq
|
|
51
51
|
end
|
52
52
|
|
53
53
|
def clear
|
54
|
-
|
54
|
+
size = dead_set.size
|
55
|
+
puts "Dead Set: Deleted #{size} entries"
|
55
56
|
end
|
56
57
|
|
57
58
|
protected
|
data/lib/sideq/retries.rb
CHANGED
@@ -33,7 +33,7 @@ module Sideq
|
|
33
33
|
deleted = 0
|
34
34
|
each_job( job_ids ) do |job_id|
|
35
35
|
job.delete
|
36
|
-
puts "#{
|
36
|
+
puts "#{job.jid}: deleted"
|
37
37
|
deleted += 1
|
38
38
|
end
|
39
39
|
puts "Retry Set: Deleted #{deleted} entries"
|
@@ -43,7 +43,7 @@ module Sideq
|
|
43
43
|
killed = 0
|
44
44
|
each_job( job_ids ) do |job|
|
45
45
|
job.kill
|
46
|
-
puts "#{
|
46
|
+
puts "#{job.jid}: moved to dead set"
|
47
47
|
killed += 1
|
48
48
|
end
|
49
49
|
puts "Retry Set: Moved #{killed} entries to Dead Set"
|
@@ -53,14 +53,15 @@ module Sideq
|
|
53
53
|
retried = 0
|
54
54
|
each_job( job_ids ) do |job|
|
55
55
|
job.retry
|
56
|
-
puts "#{
|
56
|
+
puts "#{job.jid}: retrying"
|
57
57
|
retried += 1
|
58
58
|
end
|
59
59
|
puts "Retry Set: Retried #{retried} entries"
|
60
60
|
end
|
61
61
|
|
62
62
|
def clear
|
63
|
-
|
63
|
+
size = retry_set.size
|
64
|
+
puts "Retry Set: Deleted #{size} entries"
|
64
65
|
end
|
65
66
|
|
66
67
|
protected
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sideq
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sven Riedel
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-04-
|
11
|
+
date: 2016-04-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sidekiq
|