[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 03:04:45 -07:00
committed by GitHub
parent 7de45db9a5
commit 24d1dffbeb
4 changed files with 17 additions and 8 deletions

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.