rlightning.utils.ray.launcher¶
- rlightning.utils.ray.launcher.launch_ray_actor(cls: Type, *args, role_type: str, worker_index: int, options: Dict[str, Any] | None = None, **kwargs) Any[source]¶
Create a Ray actor with the given options and arguments.
- Parameters:
cls – The class to instantiate. Can be a regular class or a ray.remote wrapped class.
*args – Positional arguments for the class constructor.
role_type – The role type of the actor.
worker_index – The worker index of the actor.
options – A dictionary of options to pass to ray.remote_cls.options(**options).
**kwargs – Keyword arguments for the class constructor.
- Returns:
The created Ray actor handle.