sweep.LoadConfig
sweep.LoadConfig(
max_retries=3,
retry_delay=0.5,
settle_delay=0.2,
raise_on_missing=False,
)Configuration for result loading behavior.
Controls retry logic and timing for loading CSV results from completed jobs. Used by load_job_results() and recover_sweep_results().
Attributes
| Name | Type | Description |
|---|---|---|
| max_retries | int | Maximum number of retry attempts for file operations. |
| retry_delay | float | Seconds to wait between retry attempts. |
| settle_delay | float | Seconds to wait after file appears before reading. Helps avoid partial reads when files are still being written. |
| raise_on_missing | bool | If True, raise ResultLoadError when CSV not found after all retries. If False, silently skip missing files. |
Examples
>>> # Default configuration
>>> config = LoadConfig()>>> # Aggressive retries for slow filesystems
>>> config = LoadConfig(max_retries=5, retry_delay=1.0, settle_delay=0.5)>>> # Fail fast on missing files
>>> config = LoadConfig(raise_on_missing=True)