freeze fix

This commit is contained in:
2026-06-02 16:36:00 +03:00
parent 9810812809
commit f4fe9b9dcd
13 changed files with 1171 additions and 181 deletions

View File

@@ -829,10 +829,10 @@ async def translate_run_websocket(websocket: WebSocket, run_id: str):
try:
from .core.database import SessionLocal
from .plugins.translate.orchestrator_aggregator import TranslationResultAggregator
from .core.event_log import EventLog
from .plugins.translate.events import TranslationEventLog
db = SessionLocal()
try:
event_log = EventLog(db)
event_log = TranslationEventLog(db)
aggregator = TranslationResultAggregator(db, event_log)
status = aggregator.get_run_status(run_id)
total = status.get("total_records", 0) or 0