Increase download timeout to 60 minutes for large MTGJSON files
This commit is contained in:
@@ -239,7 +239,7 @@ class MTGJSONManager:
|
|||||||
# Calculate timeout based on estimated file size
|
# Calculate timeout based on estimated file size
|
||||||
# Large files (>100MB) get up to 60 minutes
|
# Large files (>100MB) get up to 60 minutes
|
||||||
estimated_mb = self._get_estimated_size(filename)
|
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)")
|
logger.info(f"Downloading {filename} from {url} (timeout: {timeout}s, est: {estimated_mb}MB)")
|
||||||
|
|
||||||
|
|||||||
+2
-2
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"task_description": "MTG Online Backend - MTGJSON Data Integration & Docker Deployment",
|
"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": [
|
"files_created": [
|
||||||
"backend/app/services/mtgjson_manager.py",
|
"backend/app/services/mtgjson_manager.py",
|
||||||
"backend/scripts/sanity_check_mtgjson.py",
|
"backend/scripts/sanity_check_mtgjson.py",
|
||||||
@@ -35,6 +35,6 @@
|
|||||||
"Check logs for sanity check results"
|
"Check logs for sanity check results"
|
||||||
],
|
],
|
||||||
"blockers": [],
|
"blockers": [],
|
||||||
"commit_hash": "0643544",
|
"commit_hash": "d347e0e",
|
||||||
"timestamp": 1784598400
|
"timestamp": 1784598400
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user