right_chimp 1.1.2 → 1.1.3
Sign up to get free protection for your applications and to get access to all the features.
data/CHANGES
CHANGED
@@ -130,3 +130,7 @@ Version 1.1.2
|
|
130
130
|
-------------
|
131
131
|
* Bugfix: Fix queueing of 'held' jobs to pull no more than one job from the queue
|
132
132
|
* Bugfix: Fix issue where ssh commands were non-functional
|
133
|
+
|
134
|
+
Version 1.1.3
|
135
|
+
-------------
|
136
|
+
* Bugfix: Fix issue where queued/held jobs move into a waiting state and do nothing
|
data/lib/right_chimp/Chimp.rb
CHANGED
@@ -342,6 +342,11 @@ module Chimp
|
|
342
342
|
# Check for any invalid combinations of command line options
|
343
343
|
#
|
344
344
|
def check_option_validity
|
345
|
+
if @hold && !@array_names.empty?
|
346
|
+
puts "ERROR: Holding of array objects is not yet supported"
|
347
|
+
exit 1
|
348
|
+
end
|
349
|
+
|
345
350
|
if @tags.empty? and @array_names.empty? and @deployment_names.empty? and not @chimpd_wait_until_done
|
346
351
|
puts "ERROR: Please select the objects to operate upon."
|
347
352
|
help
|
@@ -50,7 +50,7 @@ module Chimp
|
|
50
50
|
def push(g, w)
|
51
51
|
raise "no group specified" unless g
|
52
52
|
create_group(g) if not ChimpQueue[g]
|
53
|
-
ChimpQueue[g].push(w)
|
53
|
+
ChimpQueue[g].push(w) unless ChimpQueue[g].get_job(w.job_id)
|
54
54
|
end
|
55
55
|
|
56
56
|
def create_group(name, type = :parallel, concurrency = 1)
|
@@ -55,7 +55,7 @@ module Chimp
|
|
55
55
|
@queue.each do |job|
|
56
56
|
if found_job || job.status == Executor::STATUS_HOLDING
|
57
57
|
updated_queue.push(job)
|
58
|
-
|
58
|
+
elsif job.status == Executor::STATUS_NONE
|
59
59
|
found_job = job
|
60
60
|
end
|
61
61
|
end
|
@@ -200,12 +200,13 @@ module Chimp
|
|
200
200
|
# Queue a held job by id
|
201
201
|
#
|
202
202
|
def queue(id)
|
203
|
-
Log.debug "
|
203
|
+
Log.debug "Queuing held job id #{id}"
|
204
204
|
job = @jobs_by_id[id]
|
205
205
|
job.owner = nil
|
206
206
|
job.time_start = Time.now
|
207
207
|
job.time_end = nil
|
208
208
|
job.status = Executor::STATUS_NONE
|
209
|
+
self.push(job)
|
209
210
|
end
|
210
211
|
|
211
212
|
#
|
@@ -67,8 +67,8 @@ SINCE 2012</p>
|
|
67
67
|
|
68
68
|
<p>[
|
69
69
|
<% if job_filter == 'running' or job_filter == nil %>running<% else %><a href="/display/running">running</a><% end %> |
|
70
|
-
<% if job_filter == 'none' %>waiting<% else %><a href="/display/none">waiting</a> <% end %> |
|
71
70
|
<% if job_filter == 'holding' %>holding<% else %><a href="/display/holding">holding</a> <% end %> |
|
71
|
+
<% if job_filter == 'none' %>waiting<% else %><a href="/display/none">waiting</a> <% end %> |
|
72
72
|
<% if job_filter == 'done' %>completed<% else %><a href="/display/done">completed</a><% end %> |
|
73
73
|
<% if job_filter == 'error' %>failed<% else %><a href="/display/error">failed</a><% end %>
|
74
74
|
|
|
data/lib/right_chimp/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: right_chimp
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.3
|
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:
|
12
|
+
date: 2014-01-27 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rest_connection
|