spdl.pipeline

Overview

Implements Pipeline, a generic task execution engine.

API Reference

Functions

create_task

iterate_in_subprocess

iterate_in_subprocess

Run an iterator in a separate process, and yield the results one by one.

run_pipeline_in_subprocess

run_pipeline_in_subprocess

Run the given Pipeline in a subprocess, and iterate on the result.

Classes

Pipeline

Pipeline

Data processing pipeline.

PipelineBuilder

PipelineBuilder

Build Pipeline object.

PipelineHook

PipelineHook

Base class for hooks to be used in the pipeline.

TaskStatsHook

TaskStatsHook

Track the task runtimes and success rate.

AsyncQueue

AsyncQueue

Extends asyncio.Queue with init/finalize logic.

StatsQueue

StatsQueue

Measures the time stages are blocked on upstream/downstream stage.

Exceptions

PipelineFailure

PipelineFailure

Thrown by spdl.pipeline.Pipeline when pipeline encounters an error.