mirror of
https://github.com/wassname/ray.git
synced 2026-08-08 11:25:28 +08:00
Change timeout from milliseconds to seconds in ray.wait. (#3706)
* Change timeout from milliseconds to seconds in ray.wait. * Suppress warning. * Suppress warning. * Add prominent warning in API documentation.
This commit is contained in:
committed by
Philipp Moritz
parent
59d861281e
commit
d1e21b702e
@@ -111,7 +111,7 @@ class RayTrialExecutor(TrialExecutor):
|
||||
stop_tasks.append(trial.runner.__ray_terminate__.remote())
|
||||
# TODO(ekl) seems like wait hangs when killing actors
|
||||
_, unfinished = ray.wait(
|
||||
stop_tasks, num_returns=2, timeout=250)
|
||||
stop_tasks, num_returns=2, timeout=0.25)
|
||||
except Exception:
|
||||
logger.exception("Error stopping runner.")
|
||||
self.set_status(trial, Trial.ERROR)
|
||||
|
||||
Reference in New Issue
Block a user