fix(market-metrics): offer-trend таймаут — warning вместо exception (ложные GlitchTip-события) #2329

Merged
bot-backend merged 2 commits from fix/offer-trend-log-level into main 2026-07-03 22:26:19 +00:00
Showing only changes of commit 5be7b6882f - Show all commits

View file

@ -875,12 +875,16 @@ def compute_offer_price_trend(
}
try:
rows = db.execute(_OFFER_TREND_SQL, params).mappings().all()
except Exception:
logger.exception(
"market_metrics: offer-trend query failed (lat=%s lon=%s radius=%s)",
except Exception as exc:
# Ожидаемый путь: 8с-гвард (parcels.py) отменяет запрос на холодном кэше
# (~2/сутки, профилирование 2026-07-04) — блок аддитивный, analyze успешен.
# WARNING, не exception: ERROR-уровень поднимал ложные GlitchTip-события.
logger.warning(
"market_metrics: offer-trend query failed (lat=%s lon=%s radius=%s): %s",
center_lat,
center_lon,
radius_m,
exc,
)
rows = []