right_chimp 2.1.27 → 2.1.28

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: 3e4535300fdf9ef9315f023169d64859ff2a4322
4
- data.tar.gz: fa6fdfcbe564368ad7cf99389659b3f1837938d0
3
+ metadata.gz: f4500754260b1df0b21af07eed9bd20591e227d3
4
+ data.tar.gz: ae09d843fb8c1323b04662ea20b46ab5aee756fc
5
5
  SHA512:
6
- metadata.gz: 3da7b50ce4eb42d35552dfe9308d05fb7b9e25ea202ebcc54eba48a6ff99790d832e327c8da2053b54981552ad84715af7404009cb3b1cea88d0fa5afa3ad235
7
- data.tar.gz: ac89ab3a8557f4a1daa7c9cd38eb902e2e99df53b207e136627eff976dd8e2509b59fb39a1fae437b908fabb6d190fd6bf2bc300347a8fb1209612e56a517c00
6
+ metadata.gz: 3912f54d07ee75639188a9280400f64ed7810404972978e0db0af023943631d76133abbba2d78db20e229f9e5fef48e66606b98477b66f81c4401df27d3be48c
7
+ data.tar.gz: 6e7c5de7246ce757b170933c986d4c1500a515918af04dd5a56a07d377a21d68a82112170bebd9d5cecaa7515b430c1e4dd310aa2cc0c1bb64c4c4b0cb2ce0e7
data/CHANGES CHANGED
@@ -1,3 +1,7 @@
1
+ Version 2.1.28
2
+ --------------
3
+ * Bugfix: Do not attempt to decrease the processing counter when handling a retry.
4
+
1
5
  Version 2.1.26
2
6
  --------------
3
7
  * Feature: Implemented the delay attribute for work_items of the Executor type, so they can be used when
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- right_chimp (2.1.27)
4
+ right_chimp (2.1.28)
5
5
  highline (~> 1.7.2)
6
6
  nokogiri (~> 1.6.7.1)
7
7
  progressbar (~> 0.11.0)
@@ -38,20 +38,29 @@ module Chimp
38
38
  if ChimpDaemon.instance.queue.processing[group][job_uuid.to_sym] == 0
39
39
  Log.debug 'Completed processing task ' + job_uuid.to_s
40
40
  Log.debug 'Deleting ' + job_uuid.to_s
41
+
41
42
  ChimpDaemon.instance.queue.processing[group].delete(job_uuid.to_sym)
43
+
42
44
  Log.debug ChimpDaemon.instance.queue.processing.inspect
45
+
46
+ ChimpDaemon.instance.proc_counter -= 1
43
47
  else
44
- Log.debug 'Decreasing processing counter (' + ChimpDaemon.instance.proc_counter.to_s +
45
- ') for [' + job_uuid.to_s + '] group: ' + group.to_s
48
+ if ChimpDaemon.instance.queue.processing[group][job_uuid.to_sym].nil?
49
+ Log.debug 'Job group was already deleted, no counter to decrease.'
50
+ else
51
+ Log.debug 'Decreasing processing counter (' + ChimpDaemon.instance.proc_counter.to_s +
52
+ ') for [' + job_uuid.to_s + '] group: ' + group.to_s
53
+
54
+ ChimpDaemon.instance.queue.processing[group][job_uuid.to_sym] -= 1
46
55
 
47
- ChimpDaemon.instance.queue.processing[group][job_uuid.to_sym] -= 1
56
+ Log.debug 'Processing counter now (' + ChimpDaemon.instance.proc_counter.to_s +
57
+ ') for [' + job_uuid.to_s + '] group: ' + group.to_s
58
+ Log.debug ChimpDaemon.instance.queue.processing[group].inspect
59
+ Log.debug 'Still counting down for ' + job_uuid.to_s
48
60
 
49
- Log.debug 'Processing counter now (' + ChimpDaemon.instance.proc_counter.to_s +
50
- ') for [' + job_uuid.to_s + '] group: ' + group.to_s
51
- Log.debug ChimpDaemon.instance.queue.processing[group].inspect
52
- Log.debug 'Still counting down for ' + job_uuid.to_s
61
+ ChimpDaemon.instance.proc_counter -= 1
62
+ end
53
63
  end
54
- ChimpDaemon.instance.proc_counter -= 1
55
64
  end
56
65
  end
57
66
 
@@ -1,3 +1,3 @@
1
1
  module Chimp
2
- VERSION = "2.1.27"
2
+ VERSION = "2.1.28"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: right_chimp
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.27
4
+ version: 2.1.28
5
5
  platform: ruby
6
6
  authors:
7
7
  - RightScale Operations
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-10-10 00:00:00.000000000 Z
11
+ date: 2016-10-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake