Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
machinejobfeatures
mjf-scripts
Commits
479af87c
Commit
479af87c
authored
Feb 27, 2016
by
Andrew McNab
Browse files
Suppress None values in $JOBFEATURES
parent
90ff0c49
Changes
1
Hide whitespace changes
Inline
Side-by-side
prologue.user
View file @
479af87c
...
...
@@ -72,7 +72,7 @@ try:
except
:
jobfeatures
[
'allocated_cpu'
]
=
1
open
(
jobfeaturesDir
+
'/
job_id
'
,
'w'
).
write
(
str
(
jobfeatures
[
'allocated_cpu'
]))
open
(
jobfeaturesDir
+
'/
allocated_cpu
'
,
'w'
).
write
(
str
(
jobfeatures
[
'allocated_cpu'
]))
try
:
hs06
=
float
(
open
(
'/etc/machinefeatures/hs06'
,
'r'
).
readline
())
...
...
@@ -93,11 +93,6 @@ else:
jobstart_secs
=
int
(
time
.
time
())
open
(
jobfeaturesDir
+
'/jobstart_secs'
,
'w'
).
write
(
str
(
jobstart_secs
))
jobfeatures
[
'wall_limit_secs'
]
=
None
jobfeatures
[
'cpu_limits_secs'
]
=
None
jobfeatures
[
'max_rss_bytes'
]
=
None
jobfeatures
[
'max_swap_bytes'
]
=
None
try
:
qstatResult
=
os
.
popen
(
'qstat -f '
+
job_id
,
'r'
).
read
()
except
:
...
...
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