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
14c1b31c
Commit
14c1b31c
authored
Jun 19, 2019
by
demianzhang
Committed by
chicm-ms
Jun 19, 2019
Browse files
Fix failed to connect to PAI with http code:500 (#1176)
* Catch the error in pai training service * no retry
parent
2039c1c6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
src/nni_manager/training_service/pai/paiTrainingService.ts
src/nni_manager/training_service/pai/paiTrainingService.ts
+5
-2
No files found.
src/nni_manager/training_service/pai/paiTrainingService.ts
View file @
14c1b31c
...
...
@@ -489,7 +489,10 @@ class PAITrainingService implements TrainingService {
await
HDFSClientUtility
.
copyDirectoryToHdfs
(
trialLocalTempFolder
,
hdfsCodeDir
,
this
.
hdfsClient
);
}
catch
(
error
)
{
this
.
log
.
error
(
`PAI Training service: copy
${
this
.
paiTrialConfig
.
codeDir
}
to HDFS
${
hdfsCodeDir
}
failed, error is
${
error
}
`
);
throw
new
Error
(
error
.
message
);
trialJobDetail
.
status
=
'
FAILED
'
;
deferred
.
resolve
(
true
);
return
deferred
.
promise
;
}
// Step 3. Submit PAI job via Rest call
...
...
@@ -510,7 +513,7 @@ class PAITrainingService implements TrainingService {
`Submit trial
${
trialJobId
}
failed, http code:
${
response
.
statusCode
}
, http body:
${
response
.
body
}
`
;
this
.
log
.
error
(
errorMessage
);
trialJobDetail
.
status
=
'
FAILED
'
;
deferred
.
re
ject
(
new
Error
(
errorMessage
)
);
deferred
.
re
solve
(
true
);
}
else
{
trialJobDetail
.
submitTime
=
Date
.
now
();
deferred
.
resolve
(
true
);
...
...
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