taps.executor.python¶
ProcessPoolConfig
¶
Bases: ExecutorConfig
ProcessPoolExecutor
plugin configuration.
Parameters:
-
name
(Literal['process-pool']
, default:'process-pool'
) –Executor name.
-
max_processes
(int
, default:4
) –Maximum number of processes.
-
context
(Literal['fork', 'spawn', 'forkserver'] | None
, default:None
) –Multiprocessing start method (one of fork, spawn, or forkserver).
get_executor
¶
get_executor() -> FutureDependencyExecutor
Create an executor instance from the config.
Source code in taps/executor/python.py
ThreadPoolConfig
¶
Bases: ExecutorConfig
ThreadPoolExecutor
plugin configuration.
Parameters:
-
name
(Literal['thread-pool']
, default:'thread-pool'
) –Executor name.
-
max_threads
(int
, default:4
) –Maximum number of threads.
get_executor
¶
get_executor() -> FutureDependencyExecutor