mirror of
https://github.com/wassname/ray.git
synced 2026-06-28 23:09:51 +08:00
Add entries to in-memory store on Put() (#7085)
This commit is contained in:
@@ -192,6 +192,10 @@ class SerializationContext:
|
||||
# UniqueIDs are serialized as
|
||||
# (class name, (unique bytes,)).
|
||||
outer_id = context.get_outer_object_id()
|
||||
# outer_id is None in the case that this ObjectID was closed
|
||||
# over in a function or pickled directly using pickle.dumps().
|
||||
if outer_id is None:
|
||||
outer_id = ray.ObjectID.nil()
|
||||
worker.core_worker.deserialize_and_register_object_id(
|
||||
obj_id[1][0], outer_id, owner_id[1][0], owner_address)
|
||||
return deserialized_object_id
|
||||
|
||||
Reference in New Issue
Block a user