fix/forzar-procesamiento-acuses
This commit is contained in:
@@ -3,6 +3,7 @@ import logging
|
||||
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_cove, consume_ws_get_acuse_cove
|
||||
from api.api_v2.modules.tasks.services import update_task, register_task
|
||||
@@ -83,7 +84,9 @@ def process_cove_request(self, cove_request: Dict[str, Any]) -> Dict[str, Any]:
|
||||
)
|
||||
except Exception as update_error:
|
||||
logger.error(f"No se pudo actualizar el estado de la tarea: {update_error}")
|
||||
|
||||
|
||||
if isinstance(e, _HTTPException):
|
||||
raise RuntimeError(f"HTTP {e.status_code}: {e.detail}") from None
|
||||
raise
|
||||
|
||||
|
||||
@@ -159,5 +162,7 @@ def process_acuse_cove_request(self, cove_request: Dict[str, Any]) -> Dict[str,
|
||||
)
|
||||
except Exception as update_error:
|
||||
logger.error(f"No se pudo actualizar el estado de la tarea: {update_error}")
|
||||
|
||||
|
||||
if isinstance(e, _HTTPException):
|
||||
raise RuntimeError(f"HTTP {e.status_code}: {e.detail}") from None
|
||||
raise
|
||||
Reference in New Issue
Block a user