downloader.resilience.DownloadResult

downloader.resilience.DownloadResult(
    zones,
    combined_status='n/a',
    combined_age=None,
    mode=None,
)

Aggregate result of download_with_fallback.

Attributes

Name Type Description
zones dict[str, ZoneOutcome] Per-zone outcome, keyed by column name.
combined_status str Status of the combined DE-total interim ("n/a" when not attempted, "live", "cache", or "missing").
combined_age pd.Timedelta | None Age of the combined snapshot if restored, else None.
mode str | None "four_zone" when all zones are in {live, cache}, "combined" when at least one zone is missing but the combined series is available, or None (unrecoverable).

Methods

Name Description
report Multi-line status report for log messages and Abort messages.

report

downloader.resilience.DownloadResult.report()

Multi-line status report for log messages and Abort messages.

Returns

Name Type Description
str Human-readable summary of every zone’s status (with snapshot age
str for cache hits), the combined-series status, and what was attempted.