Fix bug when failing to import remote functions or actors with args and kwargs. (#6577)

This commit is contained in:
Robert Nishihara
2019-12-24 13:23:48 -08:00
committed by Philipp Moritz
parent 687de41273
commit 2f57391595
2 changed files with 12 additions and 11 deletions
+2 -2
View File
@@ -390,7 +390,7 @@ class FunctionActorManager(object):
# This is a placeholder in case the function can't be unpickled. This
# will be overwritten if the function is successfully registered.
def f():
def f(*args, **kwargs):
raise Exception("This function was not imported properly.")
# This function is called by ImportThread. This operation needs to be
@@ -664,7 +664,7 @@ class FunctionActorManager(object):
class TemporaryActor(object):
pass
def temporary_actor_method(*xs):
def temporary_actor_method(*args, **kwargs):
raise Exception(
"The actor with name {} failed to be imported, "
"and so cannot execute this method.".format(actor_class_name))