mirror of
https://github.com/wassname/ray.git
synced 2026-07-16 11:21:10 +08:00
[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:
committed by
Richard Liaw
parent
054583ffe6
commit
375852af23
@@ -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.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user