fix(scan): raise the default SEVEN_ZIP_TIMEOUT to 180 seconds

Sixty seconds cut off extraction of mid-sized disc images, so their scan
fell back to hashing the archive itself.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Georges-Antoine Assi
2026-09-28 07:55:49 -04:00
parent 847b222b3f
commit d6530463f6
3 changed files with 3 additions and 3 deletions

View File

@@ -52,7 +52,7 @@ ROM_UPLOAD_TTL: Final[int] = 86400 # 24 hours
ROM_UPLOAD_ASSEMBLING_EXT: Final[str] = "assembling"
# SEVEN ZIP
SEVEN_ZIP_TIMEOUT: Final[int] = safe_int(_get_env("SEVEN_ZIP_TIMEOUT"), 60)
SEVEN_ZIP_TIMEOUT: Final[int] = safe_int(_get_env("SEVEN_ZIP_TIMEOUT"), 180)
# ROM PATCHER
ROM_PATCHER_TIMEOUT: Final[int] = safe_int(_get_env("ROM_PATCHER_TIMEOUT"), 120)

View File

@@ -1832,7 +1832,7 @@ Falls back to `FakeRedis` in test mode.
| `SCHEDULED_RESCAN_CRON` | `0 3 * * *` | Rescan schedule |
| `ENABLE_RESCAN_ON_FILESYSTEM_CHANGE` | `false` | Watch for file changes |
| `RESCAN_ON_FILESYSTEM_CHANGE_DELAY` | `5` | Debounce delay (minutes) |
| `SEVEN_ZIP_TIMEOUT` | | Timeout for 7-Zip extraction |
| `SEVEN_ZIP_TIMEOUT` | `180` | Timeout for 7-Zip extraction |
| `REFRESH_RETROACHIEVEMENTS_CACHE_DAYS` | | RA cache TTL (days) |
#### Device Sync

View File

@@ -101,7 +101,7 @@ SCAN_TIMEOUT=14400 # Timeout for background scan/rescan tasks in seconds
SCAN_WORKERS=4 # How many ROMs a scan processes at once
TASK_TIMEOUT=300 # Timeout for other background tasks in seconds
TASK_RESULT_TTL=86400 # How long to keep task results in Valkey in seconds
SEVEN_ZIP_TIMEOUT=60 # Timeout for 7-Zip operations in seconds
SEVEN_ZIP_TIMEOUT=180 # Timeout for 7-Zip operations in seconds
ENABLE_RESCAN_ON_FILESYSTEM_CHANGE=false # Re-scan the library automatically when the filesystem changes
RESCAN_ON_FILESYSTEM_CHANGE_DELAY=5 # Delay in minutes before re-scanning after a filesystem change
ENABLE_SCHEDULED_RESCAN=false # Enable scheduled library re-scans