Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ycai
simbricks
Commits
fe2ddae0
Commit
fe2ddae0
authored
Nov 28, 2020
by
Antoine Kaufmann
Browse files
experiments: flush output for slurm so we get intermediate results
parent
5b730885
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
experiments/modes/exectools.py
experiments/modes/exectools.py
+3
-3
No files found.
experiments/modes/exectools.py
View file @
fe2ddae0
...
...
@@ -159,16 +159,16 @@ class SimpleComponent(Component):
async
def
process_out
(
self
,
lines
,
eof
):
if
self
.
verbose
:
for
l
in
lines
:
print
(
self
.
label
,
'OUT:'
,
lines
)
print
(
self
.
label
,
'OUT:'
,
lines
,
flush
=
True
)
async
def
process_err
(
self
,
lines
,
eof
):
if
self
.
verbose
:
for
l
in
lines
:
print
(
self
.
label
,
'ERR:'
,
lines
)
print
(
self
.
label
,
'ERR:'
,
lines
,
flush
=
True
)
async
def
terminated
(
self
,
rc
):
if
self
.
verbose
:
print
(
self
.
label
,
'TERMINATED:'
,
rc
)
print
(
self
.
label
,
'TERMINATED:'
,
rc
,
flush
=
True
)
if
not
self
.
canfail
and
rc
!=
0
:
raise
Exception
(
'Command Failed: '
+
str
(
self
.
cmd_parts
))
...
...
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