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
text-generation-inference
Commits
83b84486
Unverified
Commit
83b84486
authored
Jun 02, 2023
by
OlivierDehaene
Committed by
GitHub
Jun 02, 2023
Browse files
feat(launcher): parse oom signal (#404)
parent
62fc4010
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
launcher/src/main.rs
launcher/src/main.rs
+6
-1
No files found.
launcher/src/main.rs
View file @
83b84486
...
@@ -410,9 +410,14 @@ fn shard_manager(
...
@@ -410,9 +410,14 @@ fn shard_manager(
let
mut
wait_time
=
Instant
::
now
();
let
mut
wait_time
=
Instant
::
now
();
loop
{
loop
{
// Process exited
// Process exited
if
p
.poll
()
.is_some
()
{
if
let
Some
(
exit_status
)
=
p
.poll
()
{
let
mut
err
=
String
::
new
();
let
mut
err
=
String
::
new
();
p
.stderr
.take
()
.unwrap
()
.read_to_string
(
&
mut
err
)
.unwrap
();
p
.stderr
.take
()
.unwrap
()
.read_to_string
(
&
mut
err
)
.unwrap
();
if
let
ExitStatus
::
Signaled
(
signal
)
=
exit_status
{
tracing
::
error!
(
"Shard process was signaled to shutdown with signal {signal}"
);
}
status_sender
status_sender
.send
(
ShardStatus
::
Failed
((
rank
,
err
)))
.send
(
ShardStatus
::
Failed
((
rank
,
err
)))
.unwrap
();
.unwrap
();
...
...
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