Expand description
Bulk multi-step processing for Taquba.
This crate re-exports taquba_workflow::bulk, where the
implementation lives. Depend on taquba-workflow and use its bulk
module directly; this crate receives no further development.
Structs§
- Batch
- A handle on one batch of a
Bulkrunner. Obtained fromBulk::batchorBulk::new_batch. - Batch
Status - The durable state of a batch, read from its manifest and item markers
by
Batch::status. An item with no recorded outcome is neither succeeded nor failed: it has not run to a settlement of its own, or it was cancelled. - Bulk
- Runs one
Pipelineover many inputs in a single process. Build it withBulk::builder,spawnthe worker, then run batches throughBulk::batch,Bulk::new_batchorBulk::run; several batches can run concurrently on one worker. One runner per process: taquba is single-writer. - Bulk
Builder - Builder for a
Bulkrunner. Construct viaBulk::builder. - BulkCtx
- Per-item execution context handed to
Pipeline::run. - Bulk
Report - The outcome of a finished (or drained) bulk run, returned by
Batch::run. - Cost
Report - A collection of named cost counters, accumulated as a pipeline runs and rolled up across a batch.
- Effects
Handle - Application KV effects staged during a step, applied in the same transaction as the settlement that commits the step’s outcome.
- Jsonl
Sink - An
OutputSinkthat writes one JSON object per line to an underlying writer. Each line holdskey,statusand eitheroutput(for succeeded items) orerror(when one is present). Writes are serialized through a mutex so the sink can be shared across worker tasks. - Null
Sink - An
OutputSinkthat discards every record. The default sink, for runs whose pipeline produces its results as side effects (writing to a database, calling an API) rather than through the output stream. - Output
Record - One result record handed to an
OutputSinkas an item completes. - Progress
Snapshot - A point-in-time view of a batch run’s progress. Returned by
Batch::progressand suitable for a status line or a polling UI. - Step
Error - Failure outcomes the runner can return.
Enums§
- Step
Error Kind - Whether a
StepErrorshould retry or fail the run.
Traits§
- Output
Sink - The write side of a bulk run. Implementations receive one
OutputRecordper item as it reaches a terminal state, possibly from many tasks concurrently, sowritetakes&selfand must handle its own synchronization. - Pipeline
- Defines a per-item processing pipeline. Each bulk run executes one
Pipelinefor every input item independently, materialised internally as acraterun.
Functions§
- read_
jsonl - Decode a JSONL reader into an iterator of typed items. Each non-empty
line is parsed as one
T; blank lines are skipped. Decode errors are yielded asErrso the caller decides whether to stop or continue.