Skip to content

Commit

Permalink
use function_actor_manager.lock when deserializing
Browse files Browse the repository at this point in the history
  • Loading branch information
ckw017 committed Jun 6, 2021
1 parent b88163f commit ae066c7
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions python/ray/worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -289,16 +289,17 @@ def put_object(self, value, object_ref=None):
serialized_value, object_ref=object_ref))

def raise_errors(self, data_metadata_pairs, object_refs):
context = self.get_serialization_context()
out = context.deserialize_objects(data_metadata_pairs, object_refs)
out = self.deserialize_objects(data_metadata_pairs, object_refs)
if "RAY_IGNORE_UNHANDLED_ERRORS" in os.environ:
return
for e in out:
_unhandled_error_handler(e)

def deserialize_objects(self, data_metadata_pairs, object_refs):
context = self.get_serialization_context()
return context.deserialize_objects(data_metadata_pairs, object_refs)
with self.function_actor_manager.lock:
context = self.get_serialization_context()
return context.deserialize_objects(data_metadata_pairs,
object_refs)

def get_objects(self, object_refs, timeout=None):
"""Get the values in the object store associated with the IDs.
Expand Down

0 comments on commit ae066c7

Please sign in to comment.