mirror of
https://github.com/wassname/ray.git
synced 2026-10-28 13:21:06 +08:00
Fix RemoteFunction._last_export_session (#4243)
This commit is contained in:
1 parent
5866fd7005
commit
a22d6ef955
1 file changed
+1
-1
@@ -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 "
|
||||
|
||||
Reference in new issue
Block a user