fix/forzar-procesamiento-acuses
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user