sweep.ResultLoadError
sweep.ResultLoadError(job, succeeded_before, message)Raised when result loading fails after retries.
Contains context about which job failed and how many jobs succeeded before the failure, useful for debugging and recovery.
Attributes
| Name | Type | Description |
|---|---|---|
| job | The job that failed to load. | |
| succeeded_before | Number of jobs that loaded successfully before this failure. | |
| message | Description of what went wrong. |
Examples
>>> try:
... load_job_results(cli, job, registry, export_paths,
... load_config=LoadConfig(raise_on_missing=True))
... except ResultLoadError as e:
... print(f"Failed after {e.succeeded_before} successful jobs")
... print(f"Job: {e.job.run_hash}")