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:
Robert Nishihara
2019-01-08 21:32:08 -08:00
committed by Philipp Moritz
parent 59d861281e
commit d1e21b702e
11 changed files with 58 additions and 37 deletions
+1 -3
View File
@@ -389,9 +389,7 @@ def test_actor_creation_node_failure(ray_start_cluster):
# reconstruction for any actor creation tasks that were forwarded
# to nodes that then failed.
ready, _ = ray.wait(
children_out,
num_returns=len(children_out),
timeout=5 * 60 * 1000)
children_out, num_returns=len(children_out), timeout=5 * 60.0)
assert len(ready) == len(children_out)
# Replace any actors that died.