From df518849edd8dd94b80bfbd1a2e0523a3faa3a35 Mon Sep 17 00:00:00 2001 From: SangBin Cho Date: Thu, 30 Jan 2020 19:07:52 -0800 Subject: [PATCH] Remove ray.wait timeout warning for milliseconds (#6980) --- python/ray/worker.py | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/python/ray/worker.py b/python/ray/worker.py index bcaee234b..bb429b4cc 100644 --- a/python/ray/worker.py +++ b/python/ray/worker.py @@ -1557,11 +1557,6 @@ def put(value, weakref=False): def wait(object_ids, num_returns=1, timeout=None): """Return a list of IDs that are ready and a list of IDs that are not. - .. warning:: - - The **timeout** argument used to be in **milliseconds** (up through - ``ray==0.6.1``) and now it is in **seconds**. - If timeout is set, the function returns either when the requested number of IDs are ready or when the timeout is reached, whichever occurs first. If it is not set, the function simply waits until that number of objects is ready @@ -1610,11 +1605,6 @@ def wait(object_ids, num_returns=1, timeout=None): "wait() expected a list of ray.ObjectID, got {}".format( type(object_ids))) - if isinstance(timeout, int) and timeout != 0: - logger.warning("The 'timeout' argument now requires seconds instead " - "of milliseconds. This message can be suppressed by " - "passing in a float.") - if timeout is not None and timeout < 0: raise ValueError("The 'timeout' argument must be nonnegative. " "Received {}".format(timeout))