Fix RemoteFunction._last_export_session (#4243)

This commit is contained in:
Hao Chen 2019-03-04 19:57:42 +08:00 committed by GitHub
parent 5866fd7005
commit a22d6ef955
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 "