Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Batch Iterator

Sequential batch processing with complete fault isolation per record.

Use when: Need fault isolation, ordered processing, or simple batch requirements.

Run

uv run batch_iterator/worker.py    # Terminal 1
uv run batch_iterator/starter.py   # Terminal 2

How It Works

An IteratorBatchWorkflow starts child workflows in parallel for each record. After completion, it calls continue-as-new for the next batch, maintaining bounded history.

Flow: Batch → [Child1|Child2|Child3] → Complete → Continue-as-New

Pattern Comparison

Pattern Best For Throughput Fault Isolation
Iterator Sequential, ordered data Medium Complete per record
Sliding Window High-throughput parallel High Complete per record
Heartbeating Activity Long-running I/O Medium Limited (whole batch)

Learn More