Switch to updated Plasma API and consolidate wait and fetch implementations. (#116)

* Consolidate wait implementations.

* Consolidate fetch implementations.

* Share callback between wait and fetch to address issue in which only one callback can be run for a given subscribe channel.

* Reactivate manager tests.

* Remove more code.

* Add some documentation.
This commit is contained in:
Robert Nishihara
2016-12-10 21:22:05 -08:00
committed by Philipp Moritz
parent 86973059de
commit 9474d03912
12 changed files with 287 additions and 1524 deletions
+1 -1
View File
@@ -437,7 +437,7 @@ class Worker(object):
Args:
objectid (object_id.ObjectID): The object ID of the value to retrieve.
"""
self.plasma_client.fetch2([objectid.id()])
self.plasma_client.fetch([objectid.id()])
buff = self.plasma_client.get(objectid.id())
metadata = self.plasma_client.get_metadata(objectid.id())
metadata_size = len(metadata)