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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 95870eb124f8f2adde844e2f60e789792f1bd625
4
- data.tar.gz: ad25d13479358fa547fe22a73835aed32989e2ca
3
+ metadata.gz: 79c47ffba9ca72a096807c49e51f7de86d03d47c
4
+ data.tar.gz: 9dc142f6a300e5eb7bdc8875bb2e3b33e4d8658f
5
5
  SHA512:
6
- metadata.gz: 811fd2cbbbc2a3f8998418e9fe1e7a83dd979aaac7c7ea966d00656d7aa7f071ca76e3ad92c043ed489bbbff481c55b5e6703209aa722ae7bf79fcaf24982fb6
7
- data.tar.gz: d411abb0ca7d411b58efbdb9c1db0d0a3137b2b05845c7a2b01ba21eb609b0ada923ebd33ca496f7f904ccaf6960974521a6d3a023d67455dbadb4e774f2793d
6
+ metadata.gz: 32ae9c7cd67bbcb578f7107e16864a86812ebbd2ff6c726b03813523322e7b1a1867bbc18ee44272e98d0e97143ed376844f458e18b24e5bba2d42e14e161af2
7
+ data.tar.gz: 6c9abb4e714889683e02da490c9cea88ca80623d3b71d68006ffc9ae285438af333239ee150348be35e289c4d21ae7e2d56d2a3a69ac4bc4d708132855447d44
data/CHANGELOG CHANGED
@@ -1,3 +1,7 @@
1
+ ## 0.1.2
2
+ - Bug: Fix job accessor name error
3
+ - Bug: Fix reported job number when clearing retry set and dead set
4
+
1
5
  ## 0.1.1
2
6
  - Add per-queue information and manipulation
3
7
  - Rename 'queue list' command to 'queues list' to make place for the per-queue commands
@@ -33,7 +33,7 @@ module Sideq
33
33
  deleted = 0
34
34
  each_job( job_ids ) do |job|
35
35
  job.delete
36
- puts "#{job_id}: deleted"
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 "#{job_id}: retrying"
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
- puts "Dead Set: Deleted #{dead_set.clear} entries"
54
+ size = dead_set.size
55
+ puts "Dead Set: Deleted #{size} entries"
55
56
  end
56
57
 
57
58
  protected
@@ -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 "#{job_id}: deleted"
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 "#{job_id}: moved to dead set"
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 "#{job_id}: retrying"
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
- puts "Retry Set: Deleted #{retry_set.clear} entries"
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.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-19 00:00:00.000000000 Z
11
+ date: 2016-04-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sidekiq