fix: remove dead code duplicates, add SQL LIMIT across all services
- Remove duplicate function definitions with hardcoded "AI-оператор" strings (ai_voice_runtime, ai_orchestrator, voice_name_config, voice.py) - Remove unreachable dead code after return in ai_voice_runtime - Add SQL LIMIT to 17 unbounded queries across 12 services to prevent OOM - Move Python-side filtering to SQL WHERE in reporting_service - Downgrade 19 logger.warning to logger.info for normal-flow events in media_runtime Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.6
parent
6b8f5d069b
commit
6798320209
@@ -188,7 +188,7 @@ def live_calls(
|
||||
session = get_session()
|
||||
try:
|
||||
event_rows = session.execute(
|
||||
select(VoiceEventRow).order_by(VoiceEventRow.id.desc())
|
||||
select(VoiceEventRow).order_by(VoiceEventRow.id.desc()).limit(500)
|
||||
).scalars().all()
|
||||
interaction_rows = session.execute(
|
||||
select(Interaction).order_by(Interaction.id.desc())
|
||||
|
||||
Reference in New Issue
Block a user