Configuration API Reference¶
rivusio.config.PipeConfig ¶
Bases: BaseModel
Base configuration model for all pipes.
All pipe configurations should inherit from this class to ensure consistent configuration handling across the pipeline system.
| ATTRIBUTE | DESCRIPTION |
|---|---|
name |
Optional name for the pipe instance. Defaults to "default"
TYPE:
|
description |
Optional description of the pipe's purpose. Defaults to empty string
TYPE:
|
Example
Source code in src/rivusio/config/pipe.py
rivusio.config.ParallelConfig
dataclass
¶
Configuration for parallel execution.
Source code in src/rivusio/config/executor.py
__post_init__ ¶
Set default max_workers based on strategy.
Source code in src/rivusio/config/executor.py
rivusio.config.StreamConfig ¶
Bases: BaseModel
Configuration for stream processing behavior.
Controls various aspects of stream processing including retry behavior, timeouts, batch sizes, and window settings.
| ATTRIBUTE | DESCRIPTION |
|---|---|
name |
Optional name for the stream instance |
retry_attempts |
Number of retry attempts for failed operations
TYPE:
|
retry_delay |
Initial delay between retries in seconds
TYPE:
|
retry_backoff |
Multiplier for retry delay after each attempt
TYPE:
|
timeout |
Operation timeout in seconds
TYPE:
|
batch_size |
Number of items to process in each batch
TYPE:
|
window_size |
Time window duration for window-based processing
TYPE:
|
buffer_size |
Maximum number of items to buffer
TYPE:
|
collect_metrics |
Whether to collect processing metrics
TYPE:
|