Basic direct actor call support in Python (#5991)

This commit is contained in:
Eric Liang
2019-10-28 22:09:04 -07:00
committed by GitHub
parent 4c4342c165
commit b89cac976a
20 changed files with 283 additions and 62 deletions
+4 -2
View File
@@ -306,7 +306,8 @@ class ActorClass(object):
num_gpus=None,
memory=None,
object_store_memory=None,
resources=None):
resources=None,
is_direct_call=None):
"""Create an actor.
This method allows more flexibility than the remote method because
@@ -323,6 +324,7 @@ class ActorClass(object):
this actor when creating objects.
resources: The custom resources required by the actor creation
task.
is_direct_call: Use direct actor calls.
Returns:
A handle to the newly created actor.
@@ -401,7 +403,7 @@ class ActorClass(object):
actor_id = worker.core_worker.create_actor(
function_descriptor.get_function_descriptor_list(),
creation_args, meta.max_reconstructions, resources,
actor_placement_resources)
actor_placement_resources, is_direct_call)
actor_handle = ActorHandle(
actor_id,