pool
pool ¶
Process pool management for flow execution.
ProcessPoolManager ¶
Manages process and thread pools for flow execution.
Source code in src/flow/execution/pool.py
shutdown ¶
shutdown(wait: bool = True) -> None
Shutdown the pool manager.
Source code in src/flow/execution/pool.py
submit_task
async
¶
submit_task(
process_id: str,
flow_type: FlowType,
func: Callable,
input_data: Dict[str, Any],
timeout: Optional[float] = None,
) -> Any
Submit a task for execution.
Source code in src/flow/execution/pool.py
wait_for_task
async
¶
Wait for a specific task to complete.