mirror of
https://github.com/wassname/ray.git
synced 2026-06-28 00:29:38 +08:00
[tune] Return error trials(#2292)
This commit is contained in:
@@ -95,10 +95,13 @@ def run_experiments(experiments,
|
||||
|
||||
print(runner.debug_string(max_debug=99999))
|
||||
|
||||
errored_trials = []
|
||||
for trial in runner.get_trials():
|
||||
# TODO(rliaw): What about errored?
|
||||
if trial.status != Trial.TERMINATED:
|
||||
raise TuneError("Trial did not complete", trial)
|
||||
errored_trials += [trial]
|
||||
|
||||
if errored_trials:
|
||||
raise TuneError("Trials did not complete", errored_trials)
|
||||
|
||||
wait_for_log_sync()
|
||||
return runner.get_trials()
|
||||
|
||||
Reference in New Issue
Block a user