[tune] Check node liveness before result fetch (#5844)

* Check if trial's node is alive before trying to fetch result

* Added function for failed trials to trial_executor interface

* Address comments, add test.
This commit is contained in:
Ujval Misra
2019-10-08 11:41:01 -07:00
committed by Richard Liaw
parent 054583ffe6
commit 375852af23
4 changed files with 75 additions and 18 deletions
+9
View File
@@ -158,6 +158,15 @@ class TrialExecutor(object):
"""
raise NotImplementedError
def get_next_failed_trial(self):
"""Non-blocking call that detects and returns one failed trial.
Returns:
A Trial object that is ready for failure processing. None if
no failure detected.
"""
raise NotImplementedError
def fetch_result(self, trial):
"""Fetches one result for the trial.