projects
/
arvados.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
58c4c90
)
crunch-dispatch: make sure to update the info['slurm_state'] for the
author
Ward Vandewege <ward@curoverse.com>
Mon, 7 Jul 2014 19:04:52 +0000
(15:04 -0400)
committer
Ward Vandewege <ward@curoverse.com>
Mon, 7 Jul 2014 19:05:37 +0000
(15:05 -0400)
correct node, not just the first one that happens to have a matching
hostname in our database.
no issue #
services/api/script/crunch-dispatch.rb
patch
|
blob
|
history
diff --git
a/services/api/script/crunch-dispatch.rb
b/services/api/script/crunch-dispatch.rb
index c39c8ea9922f9708028eadbddce1cbc90eae4635..5a990f0cb41ad30bd8832399a0d40c1839f2460e 100755
(executable)
--- a/
services/api/script/crunch-dispatch.rb
+++ b/
services/api/script/crunch-dispatch.rb
@@
-78,7
+78,7
@@
class Dispatcher
# update our database (and cache) when a node's state changes
if @node_state[re[1]] != re[2]
@node_state[re[1]] = re[2]
- node = Node.where('hostname=?', re[1]).
fir
st
+ node = Node.where('hostname=?', re[1]).
order(:last_ping_at).la
st
if node
$stderr.puts "dispatch: update #{re[1]} state to #{re[2]}"
node.info['slurm_state'] = re[2]