mirror of
https://github.com/wassname/ray.git
synced 2026-06-28 18:45:03 +08:00
Quick workaround for ray.wait bug. (#42)
This commit is contained in:
committed by
Philipp Moritz
parent
35ce5f8001
commit
a93c6b7596
@@ -1005,7 +1005,7 @@ def wait(object_ids, num_returns=1, timeout=None, worker=global_worker):
|
||||
"""
|
||||
check_connected(worker)
|
||||
object_id_strs = [object_id.id() for object_id in object_ids]
|
||||
timeout = timeout if timeout is not None else 2 ** 36
|
||||
timeout = timeout if timeout is not None else 2 ** 30
|
||||
ready_ids, remaining_ids = worker.plasma_client.wait(object_id_strs, timeout, num_returns)
|
||||
ready_ids = [photon.ObjectID(object_id) for object_id in ready_ids]
|
||||
remaining_ids = [photon.ObjectID(object_id) for object_id in remaining_ids]
|
||||
|
||||
Reference in New Issue
Block a user