fix(mid-section-defect): use read_sql_df_slow to avoid 55s pool timeout

Station detection query with large date ranges (5+ months) exceeds the
55s pool call_timeout. Switch to read_sql_df_slow (300s, dedicated
connection) matching other historical query services.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
egg
2026-02-25 13:16:41 +08:00
parent 71c8102de6
commit 49bd4b31d3

View File

@@ -46,7 +46,7 @@ from typing import Optional, Dict, List, Any, Set, Tuple, Generator
import pandas as pd
from mes_dashboard.core.database import read_sql_df
from mes_dashboard.core.database import read_sql_df_slow as read_sql_df
from mes_dashboard.core.cache import cache_get, cache_set, make_cache_key
from mes_dashboard.core.redis_client import try_acquire_lock, release_lock
from mes_dashboard.sql import SQLLoader