Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
grid5000
reference-repository
Commits
13bd1650
Commit
13bd1650
authored
Apr 21, 2016
by
Jérémie Gaidamour
Browse files
[dev] run-g5kchecks: skip reservation for existing output files
parent
d8adb4be
Changes
1
Hide whitespace changes
Inline
Side-by-side
dev/run-g5kchecks/run-g5kchecks.rb
View file @
13bd1650
...
...
@@ -248,6 +248,11 @@ else # ! options[:force]
cluster_uid
=
node_uid
.
split
(
/-/
).
first
next
if
options
[
:clusters
]
&&
!
options
[
:clusters
].
include?
(
cluster_uid
)
# -c and -n info should be consistent
next
if
!
nodes_status
.
keys
.
include?
(
fnode_uid
)
# the node does not belong to this site
if
File
.
exist?
(
"output/
#{
fnode_uid
}
.yaml"
)
puts
"output/
#{
fnode_uid
}
.yaml exist. Remove this file if you want to run g5k-checks again on this node."
next
end
jobs
<<
oarsub
(
site_uid
,
"{host='
#{
fnode_uid
}
'}"
,
options
[
:queue
])
}
...
...
@@ -272,6 +277,11 @@ else # ! options[:force]
next
if
File
.
exist?
(
"output/
#{
fnode_uid
}
.yaml"
)
# skip reservation if we alread have the node info
next
if
status
!=
"busy"
# only busy nodes
if
File
.
exist?
(
"output/
#{
fnode_uid
}
.yaml"
)
puts
"output/
#{
fnode_uid
}
.yaml exist. Remove this file if you want to run g5k-checks again on this node."
next
end
jobs
<<
oarsub
(
site_uid
,
"{host='
#{
fnode_uid
}
'}"
,
options
[
:queue
])
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment