mirror of
https://github.com/vale981/ray
synced 2025-03-06 10:31:39 -05:00
Fix RemoteFunction._last_export_session (#4243)
This commit is contained in:
parent
5866fd7005
commit
a22d6ef955
1 changed files with 1 additions and 1 deletions
|
@ -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 "
|
||||
|
|
Loading…
Add table
Reference in a new issue