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
ColossalAI
Commits
c72c827e
Unverified
Commit
c72c827e
authored
Jan 11, 2023
by
Frank Lee
Committed by
GitHub
Jan 11, 2023
Browse files
[cli] provided more details if colossalai run fail (#2442)
parent
c41e59e5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
colossalai/cli/launcher/multinode_runner.py
colossalai/cli/launcher/multinode_runner.py
+8
-4
No files found.
colossalai/cli/launcher/multinode_runner.py
View file @
c72c827e
import
fabric
from
.hostinfo
import
HostInfo
,
HostInfoList
from
multiprocessing
import
Pipe
,
Process
from
multiprocessing
import
Pipe
,
Process
from
multiprocessing
import
connection
as
mp_connection
from
multiprocessing
import
connection
as
mp_connection
import
click
import
click
import
fabric
from
.hostinfo
import
HostInfo
,
HostInfoList
def
run_on_host
(
hostinfo
:
HostInfo
,
workdir
:
str
,
recv_conn
:
mp_connection
.
Connection
,
def
run_on_host
(
hostinfo
:
HostInfo
,
workdir
:
str
,
recv_conn
:
mp_connection
.
Connection
,
...
@@ -45,8 +47,10 @@ def run_on_host(hostinfo: HostInfo, workdir: str, recv_conn: mp_connection.Conne
...
@@ -45,8 +47,10 @@ def run_on_host(hostinfo: HostInfo, workdir: str, recv_conn: mp_connection.Conne
# execute on the remote machine
# execute on the remote machine
fab_conn
.
run
(
cmds
,
hide
=
False
)
fab_conn
.
run
(
cmds
,
hide
=
False
)
send_conn
.
send
(
'success'
)
send_conn
.
send
(
'success'
)
except
:
except
Exception
as
e
:
click
.
echo
(
f
"Error: failed to run
{
cmds
}
on
{
hostinfo
.
hostname
}
"
)
click
.
echo
(
f
"Error: failed to run
{
cmds
}
on
{
hostinfo
.
hostname
}
, is localhost:
{
hostinfo
.
is_local_host
}
, exception:
{
e
}
"
)
send_conn
.
send
(
'failure'
)
send_conn
.
send
(
'failure'
)
# shutdown
# shutdown
...
...
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