From 96c46d35ff7f6802070fecc74d9275aa0b1af130 Mon Sep 17 00:00:00 2001 From: Robert Nishihara Date: Sun, 10 Dec 2017 22:40:28 -0800 Subject: [PATCH] Tell Ray how to serialize FunctionSignature objects. (#1308) --- python/ray/worker.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/python/ray/worker.py b/python/ray/worker.py index 807a832e2..25619a260 100644 --- a/python/ray/worker.py +++ b/python/ray/worker.py @@ -1057,6 +1057,10 @@ def _initialize_serialization(worker=global_worker): # Ray can serialize actor handles that have been wrapped. register_custom_serializer(ray.actor.ActorHandleWrapper, use_dict=True) + # Tell Ray to serialize FunctionSignatures as dictionaries. This is + # used when passing around actor handles. + register_custom_serializer(ray.signature.FunctionSignature, + use_dict=True) def get_address_info_from_redis_helper(redis_address, node_ip_address):