Commit c2d602b8 authored by Cristian Aguirre's avatar Cristian Aguirre

Update action-exclude-records-v1-dask

parent 7086b4fa
......@@ -14,7 +14,7 @@ class ActionInterface(ABC):
raise NotImplementedError
@abstractmethod
def process(self, source_obj, script_name, timezone, pattern):
def process(self, source_obj):
"""Método que ejecuta la lógica del script"""
raise NotImplementedError
......
......@@ -46,16 +46,16 @@ class Process:
# Iniciando process
self.app.logger.info(f"Iniciando procesamiento de script")
obj_script.process(source, script_name, cfg.timezone, cfg.time_pattern)
obj_script.process(source)
print("1")
# Guardando resultado
self.app.logger.info(f"Generado y guardando resultado")
# _ = obj_script.response()
response = obj_script.response()
# response.show()
# result = self.utils.create_result(response, self.descriptor)
# save = self.utils.save_result(result, self.descriptor, db_session)
# if save["status"] == StatusEnum.ERROR.name:
# raise InterruptedError(save["message"])
result = self.utils.create_result(response, self.descriptor)
save = self.utils.save_result(result, self.descriptor, db_session)
if save["status"] == StatusEnum.ERROR.name:
raise InterruptedError(save["message"])
except TimeoutError as e:
self.app.logger.error(f"Error de Timeout. Error: {e}")
status, status_description = CodeResponseEnum.TIMEOUT, str(e)
......
......@@ -9,8 +9,6 @@ tar xzf Python-3.10.0.tgz && cd Python-3.10.0 && \
./configure --enable-optimizations && \
make altinstall
COPY subset_sum_linux /tmp/
COPY requirements.txt /
RUN python3 -m pip install numpy pandas py4j python-dateutil pytz six tzdata
......
This diff is collapsed.
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