mirror of
https://github.com/wassname/ray.git
synced 2026-07-23 13:10:11 +08:00
Non-blocking fetch implementation. (#83)
* Non-blocking fetch implementation. * Make fetch tests more robust to timing issues. * Bug fix when ignoring transferred objects. * Fix. * Documentation fixes.
This commit is contained in:
committed by
Philipp Moritz
parent
9a513363f9
commit
2a3e9267f8
@@ -181,6 +181,14 @@ class PlasmaClient(object):
|
||||
"""
|
||||
return libplasma.fetch(self.conn, object_ids)
|
||||
|
||||
def fetch2(self, object_ids):
|
||||
"""Fetch the objects with the given IDs from other plasma manager instances.
|
||||
|
||||
Args:
|
||||
object_ids (List[str]): A list of strings used to identify the objects.
|
||||
"""
|
||||
return libplasma.fetch2(self.conn, object_ids)
|
||||
|
||||
def wait(self, object_ids, timeout=PLASMA_WAIT_TIMEOUT, num_returns=1):
|
||||
"""Wait until num_returns objects in object_ids are ready.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user