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
nni
Commits
54ed2b93
Unverified
Commit
54ed2b93
authored
Dec 25, 2020
by
J-shang
Committed by
GitHub
Dec 25, 2020
Browse files
detached tuner process under windows (#3218)
parent
f1013390
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
nni/experiment/experiment.py
nni/experiment/experiment.py
+1
-1
ts/nni_manager/common/utils.ts
ts/nni_manager/common/utils.ts
+4
-1
No files found.
nni/experiment/experiment.py
View file @
54ed2b93
...
...
@@ -170,7 +170,7 @@ class Experiment:
while
True
:
time
.
sleep
(
10
)
status
=
self
.
get_status
()
if
status
==
'STOPPED'
:
if
status
==
'DONE'
or
status
==
'STOPPED'
:
return
True
if
status
==
'ERROR'
:
return
False
...
...
ts/nni_manager/common/utils.ts
View file @
54ed2b93
...
...
@@ -344,16 +344,19 @@ function getTunerProc(command: string, stdio: StdioOptions, newCwd: string, newE
let
cmd
:
string
=
command
;
let
arg
:
string
[]
=
[];
let
newShell
:
boolean
=
true
;
let
isDetached
:
boolean
=
false
;
if
(
process
.
platform
===
"
win32
"
)
{
cmd
=
command
.
split
(
"
"
,
1
)[
0
];
arg
=
command
.
substr
(
cmd
.
length
+
1
).
split
(
"
"
);
newShell
=
false
;
isDetached
=
true
;
}
const
tunerProc
:
ChildProcess
=
spawn
(
cmd
,
arg
,
{
stdio
,
cwd
:
newCwd
,
env
:
newEnv
,
shell
:
newShell
shell
:
newShell
,
detached
:
isDetached
});
return
tunerProc
;
}
...
...
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