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
OpenDAS
deepspeed
Commits
24335d49
Unverified
Commit
24335d49
authored
Mar 16, 2021
by
Stas Bekman
Committed by
GitHub
Mar 16, 2021
Browse files
[runner/launch] propagate the error (#854)
Co-authored-by:
Jeff Rasley
<
jerasley@microsoft.com
>
parent
a75d971b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
deepspeed/launcher/runner.py
deepspeed/launcher/runner.py
+6
-0
No files found.
deepspeed/launcher/runner.py
View file @
24335d49
...
@@ -359,6 +359,12 @@ def main(args=None):
...
@@ -359,6 +359,12 @@ def main(args=None):
result
=
subprocess
.
Popen
(
cmd
,
env
=
env
)
result
=
subprocess
.
Popen
(
cmd
,
env
=
env
)
result
.
wait
()
result
.
wait
()
# In case of failure must propagate the error-condition back to the caller (usually shell). The
# actual error and traceback should have been printed in the subprocess, so in order to avoid
# unnecessary noise we just quietly exit here with the same code as the subprocess
if
result
.
returncode
>
0
:
sys
.
exit
(
result
.
returncode
)
if
__name__
==
"__main__"
:
if
__name__
==
"__main__"
:
main
()
main
()
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