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
58b259a5
Unverified
Commit
58b259a5
authored
Apr 11, 2019
by
fishyds
Committed by
GitHub
Apr 11, 2019
Browse files
[PAI training service] show more error message when submitting job failed (#974)
* Show more error msg when submitting PAI job failed
parent
1112256b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
src/nni_manager/training_service/pai/paiTrainingService.ts
src/nni_manager/training_service/pai/paiTrainingService.ts
+4
-2
No files found.
src/nni_manager/training_service/pai/paiTrainingService.ts
View file @
58b259a5
...
@@ -291,9 +291,11 @@ class PAITrainingService implements TrainingService {
...
@@ -291,9 +291,11 @@ class PAITrainingService implements TrainingService {
};
};
request
(
submitJobRequest
,
(
error
:
Error
,
response
:
request
.
Response
,
body
:
any
)
=>
{
request
(
submitJobRequest
,
(
error
:
Error
,
response
:
request
.
Response
,
body
:
any
)
=>
{
if
(
error
||
response
.
statusCode
>=
400
)
{
if
(
error
||
response
.
statusCode
>=
400
)
{
this
.
log
.
error
(
`PAI Training service: Submit trial
${
trialJobId
}
to PAI Cluster failed!`
);
const
errorMessage
:
string
=
error
?
error
.
message
:
`Submit trial
${
trialJobId
}
failed, http code:
${
response
.
statusCode
}
, http body:
${
response
.
body
}
`
;
this
.
log
.
error
(
errorMessage
);
trialJobDetail
.
status
=
'
FAILED
'
;
trialJobDetail
.
status
=
'
FAILED
'
;
deferred
.
reject
(
e
rror
?
error
.
m
essage
:
'
Submit trial failed, http code:
'
+
response
.
statusCode
);
deferred
.
reject
(
new
E
rror
(
error
M
essage
));
}
else
{
}
else
{
trialJobDetail
.
submitTime
=
Date
.
now
();
trialJobDetail
.
submitTime
=
Date
.
now
();
deferred
.
resolve
(
trialJobDetail
);
deferred
.
resolve
(
trialJobDetail
);
...
...
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