From a22d6ef95594a3b95fac5b2eb17f7f21be2888e8 Mon Sep 17 00:00:00 2001 From: Hao Chen Date: Mon, 4 Mar 2019 19:57:42 +0800 Subject: [PATCH] Fix RemoteFunction._last_export_session (#4243) --- python/ray/remote_function.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/ray/remote_function.py b/python/ray/remote_function.py index ff9978017..d07b97e7e 100644 --- a/python/ray/remote_function.py +++ b/python/ray/remote_function.py @@ -59,9 +59,9 @@ class RemoteFunction(object): # Export the function. worker = ray.worker.get_global_worker() - worker.function_actor_manager.export(self) # In which session this function was exported last time. self._last_export_session = worker._session_index + worker.function_actor_manager.export(self) def __call__(self, *args, **kwargs): raise Exception("Remote functions cannot be called directly. Instead "