spdl.pipeline.run_pipeline_in_subinterpreter

run_pipeline_in_subinterpreter(config: PipelineConfig[T], /, *, num_threads: int, max_failures: int = -1, report_stats_interval: float = -1, queue_class: type[AsyncQueue] | None = None, task_hook_factory: Callable[[str], list[TaskHook]] | None = None, **kwargs: Any) Iterable[T][source]

[Experimental] Run the given Pipeline in a subinterpreter, and iterate on the result.

Parameters:
Yields:

The results yielded from the pipeline.

See also