diff options
| author | Danilo M. <danix@danix.xyz> | 2026-07-31 08:57:50 +0200 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-07-31 08:57:50 +0200 |
| commit | bc909d9886e0c679fec1589734199de8873f9469 (patch) | |
| tree | dad4601d3601b7ef89a5ebe3978908982a697a14 /.gitignore | |
| parent | 0a5464c523618c66ef2736683db38731282d8d35 (diff) | |
| download | tg_backup-bc909d9886e0c679fec1589734199de8873f9469.tar.gz tg_backup-bc909d9886e0c679fec1589734199de8873f9469.zip | |
feat: log permanently failed downloads to failures.json
State advances past a download that exhausts MAX_RETRIES so one broken
file cannot wedge the backup, which until now left a silent gap in the
archive. Failures are appended to failures.json in the archive dir as
JSONL, one {id, file, error} per line; appending is a single write, so a
crash costs the last record rather than the file.
download_with_retry now returns the last exception or None on success,
replacing the True/False return, so the caller has an error to log.
Nothing reads or prunes the file: it is a record, not a retry queue.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Diffstat (limited to '.gitignore')
0 files changed, 0 insertions, 0 deletions
