Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
reference-repository
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
6
Merge Requests
6
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
grid5000
reference-repository
Commits
a9d5cc13
Commit
a9d5cc13
authored
Sep 02, 2016
by
PARISOT Clement
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[dev] oar - Add maintenance property ('YES' if queue is 'testing')
parent
86b3e6a6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
generators/oar-properties/lib/lib-oar-properties.rb
generators/oar-properties/lib/lib-oar-properties.rb
+3
-1
No files found.
generators/oar-properties/lib/lib-oar-properties.rb
View file @
a9d5cc13
...
...
@@ -98,6 +98,9 @@ def get_node_properties(cluster_uid, cluster, node_uid, node)
h
[
'max_walltime'
]
=
0
# default
h
[
'max_walltime'
]
=
node
[
'supported_job_types'
][
'max_walltime'
]
if
node
[
'supported_job_types'
]
&&
node
[
'supported_job_types'
].
has_key?
(
'max_walltime'
)
h
[
'maintenance'
]
=
false
# default
h
[
'maintenance'
]
=
node
[
'supported_job_types'
][
'queues'
].
include?
(
'testing'
)
if
node
[
'supported_job_types'
]
&&
node
[
'supported_job_types'
].
has_key?
(
'queues'
)
# convert booleans to YES/NO string
h
.
each
{
|
k
,
v
|
...
...
@@ -184,7 +187,6 @@ def ignore_keys()
"jobs"
,
# This property exists when a job is running
"last_available_upto"
,
"last_job_date"
,
"maintenance"
,
"mic"
,
# TODO
"network_address"
,
# TODO
"next_finaud_decision"
,
...
...
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