Commit f99db2a4 authored by Cristian Aguirre's avatar Cristian Aguirre

Add a time to sleep at the end.

parent 5bb10a73
from typing import Dict, Any
import traceback as traceback_lib
import importlib
import time
from config import Config as cfg
from app.main.engine.util.Timezone import Timezone
......@@ -59,6 +60,8 @@ class Process:
raise InterruptedError(save["message"])
status_description = save["id"]
del result
# Esperar n segundos para que el commit sea efectivo si en caso la BD es lenta
time.sleep(4)
except TimeoutError as e:
self.app.logger.error(f"Error de Timeout. Error: {e}")
status, status_description = CodeResponseEnum.TIMEOUT, str(e)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment