Increase download timeout to 60 minutes for large MTGJSON files

This commit is contained in:
2026-07-20 04:38:53 +00:00
parent d347e0e586
commit 20fb57258b
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -239,7 +239,7 @@ class MTGJSONManager:
# Calculate timeout based on estimated file size
# Large files (>100MB) get up to 60 minutes
estimated_mb = self._get_estimated_size(filename)
timeout = max(1200, estimated_mb * 8) # At least 20 min, 8x estimated MB
timeout = max(3600, estimated_mb * 8) # At least 60 min, 8x estimated MB
logger.info(f"Downloading {filename} from {url} (timeout: {timeout}s, est: {estimated_mb}MB)")
+2 -2
View File
@@ -1,6 +1,6 @@
{
"task_description": "MTG Online Backend - MTGJSON Data Integration & Docker Deployment",
"current_step": "Timeouts doubled to prevent timeout errors",
"current_step": "Timeouts doubled to prevent download/upsert timeouts",
"files_created": [
"backend/app/services/mtgjson_manager.py",
"backend/scripts/sanity_check_mtgjson.py",
@@ -35,6 +35,6 @@
"Check logs for sanity check results"
],
"blockers": [],
"commit_hash": "0643544",
"commit_hash": "d347e0e",
"timestamp": 1784598400
}