Remove unused function definition caching (#6042)

This commit is contained in:
Edward Oakes
2019-10-30 16:41:18 -07:00
committed by GitHub
parent 56f3e96887
commit e9e78871b9
2 changed files with 7 additions and 50 deletions
-3
View File
@@ -1578,8 +1578,6 @@ def connect(node,
# Export cached functions_to_run.
for function in worker.cached_functions_to_run:
worker.run_function_on_all_workers(function)
# Export cached remote functions and actors to the workers.
worker.function_actor_manager.export_cached()
worker.cached_functions_to_run = None
@@ -1608,7 +1606,6 @@ def disconnect(exiting_interpreter=False):
worker.node = None # Disconnect the worker from the node.
worker.cached_functions_to_run = []
worker.function_actor_manager.reset_cache()
worker.serialization_context_map.clear()
# We need to destruct the core worker here because after this function,