Fix compliance optimizer timeout: 600s -> 1800s to match other pipeline steps

This commit is contained in:
Yuzhiran Dev
2026-05-20 17:02:36 +08:00
parent 2244736318
commit bf38125362
+1 -1
View File
@@ -73,7 +73,7 @@ def run_optimizer_step(topic_id: str) -> bool:
script_path = PROJECT_ROOT / "scripts" / "compliance_optimizer.py" script_path = PROJECT_ROOT / "scripts" / "compliance_optimizer.py"
cmd = ["python3", str(script_path), "--topic-ids", topic_id] cmd = ["python3", str(script_path), "--topic-ids", topic_id]
logger.info(f"Running: {' '.join(cmd)}") logger.info(f"Running: {' '.join(cmd)}")
result = subprocess.run(cmd, cwd=str(PROJECT_ROOT), capture_output=True, text=True, timeout=600) result = subprocess.run(cmd, cwd=str(PROJECT_ROOT), capture_output=True, text=True, timeout=1800)
if result.returncode != 0: if result.returncode != 0:
logger.error(f"compliance_optimizer 失败: {result.stderr}") logger.error(f"compliance_optimizer 失败: {result.stderr}")
return False return False