feat: add automatic retry for failed example image downloads

- Add failed_model_timestamps to track when models fail
- Retry failed models after 24-hour cooldown period
- Skip retry if example folder already has files
- Skip retry if failure was less than 24 hours ago
- Log count of failed models with retry message
- Fix unbound snapshot variable in exception path
- Remove duplicate/unreachable directory check code
- Update string quotes to double quotes (PEP 8)

This fixes the issue where failed models were permanently skipped in
auto-download mode, even when their example folders were empty.
This commit is contained in:
Will Miao
2026-01-18 08:55:49 +08:00
parent 88e7f671d2
commit cb460fcdb0
2 changed files with 721 additions and 325 deletions

File diff suppressed because it is too large Load Diff