QDpy
Loading...
Searching...
No Matches
qdpy.base.RayExecutor Class Reference
Inheritance diagram for qdpy.base.RayExecutor:
qdpy.base.ExecutorLike qdpy.base.ExecutorLike

Public Member Functions

None shutdown (self, bool wait=True)

Detailed Description

Expose Ray tasks through the executor interface.

Install the ``ray`` extra. Pass a cluster address or set ``RAY_ADDRESS``
to attach to a running cluster. Otherwise start local Ray. An active
Ray connection in the calling process is reused unless an explicit
address was passed. The executor closes connections it opens.

:param address: Optional Ray cluster address. Use "local" to start
    local Ray even when ``RAY_ADDRESS`` is set.
:param max_workers: CPU count for local Ray. An attached cluster
    controls its own resources.
Executor that encapsulate ray concurrency functions. Need the ray package to be installed and importable.

Definition at line 198 of file base.py.

Member Function Documentation

◆ shutdown()

None qdpy.base.RayExecutor.shutdown ( self,
bool wait = True )
Close the Ray connection if this executor opened it.

Reimplemented from qdpy.base.ExecutorLike.

Definition at line 242 of file base.py.


The documentation for this class was generated from the following file: