[executor] feat: add supports_pp attr to executors (#21786)

Signed-off-by: Haibin Lin <haibin.lin@bytedance.com>
This commit is contained in:
H
2025-08-03 18:04:45 +08:00
committed by GitHub
parent 7de45db9a5
commit 24d1dffbeb
4 changed files with 17 additions and 8 deletions
+2
View File
@@ -41,6 +41,8 @@ logger = init_logger(__name__)
class MultiprocExecutor(Executor):
supports_pp: bool = True
def _init_executor(self) -> None:
# Call self.shutdown at exit to clean up
# and ensure workers will be terminated.
@@ -43,6 +43,8 @@ class FutureWrapper(Future):
class RayDistributedExecutor(RayDistributedExecutorV0, Executor):
"""Ray distributed executor using Ray Compiled Graphs."""
supports_pp: bool = True
def _init_executor(self) -> None:
super()._init_executor()