Expand description
Tokio mpsc-based work queue for the batch processing pipeline.
The BatchQueue provides a bounded channel through which route handlers
submit job IDs to the background BatchWorker. The worker receives job
IDs, reads the input from disk, processes each line through the inference
engine, and writes results back to disk.
Structs§
- Batch
Work Item - A single work item: a job ID to process.
Functions§
- new_
batch_ queue - Create a bounded batch work queue with the given capacity.
Type Aliases§
- Batch
Queue Receiver - Receiver half of the batch work queue.
- Batch
Queue Sender - Sender half of the batch work queue.