ActorMethod#

class ray.actor.ActorMethod(actor: ActorHandle, method_name: str, num_returns: int | Literal['streaming'] | None, max_task_retries: int, retry_exceptions: bool | list | tuple, is_generator: bool, generator_backpressure_num_objects: int, num_objects_per_yield: int, enable_task_events: bool, decorator: Callable | None = None, signature: List[Parameter] | None = None, tensor_transport: str | None = None)[source]#

Bases: object

A class used to invoke an actor method.

Note: This class should not be instantiated directly. Instead, it should only be used as a return value from the @ray.method decorator.

Methods

__init__

Initialize an ActorMethod.

bind

Bind arguments to the actor method for Ray DAG building.

options

Convenience method for executing an actor method call with options.

remote

Call this actor method remotely with the given arguments.