fix/forzar-procesamiento-acuses

This commit is contained in:
2026-05-25 14:54:46 -06:00
parent a6ce91d8af
commit fe8e7dc10f
7 changed files with 61 additions and 22 deletions

View File

@@ -4,6 +4,7 @@ import time
from celery import Celery
from celery_app import celery_app
from typing import Dict, Any
from fastapi import HTTPException as _HTTPException
from .services import consume_ws_get_partida
from api.api_v2.modules.tasks.services import register_task, update_task
@@ -89,6 +90,8 @@ def process_partida_request(self, partida_request: Dict[str, Any]) -> Dict[str,
)
except Exception as update_error:
logger.error(f"Error al actualizar estado de tarea: {update_error}")
if isinstance(e, _HTTPException):
raise RuntimeError(f"HTTP {e.status_code}: {e.detail}") from None
raise
finally:
# Limpiar el event loop