Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
CSS-Engine-Python-Cusca
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Proyectos-Innovacion-2024
CSS-Engine-Python-Cusca
Commits
c2d602b8
Commit
c2d602b8
authored
May 08, 2024
by
Cristian Aguirre
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update action-exclude-records-v1-dask
parent
7086b4fa
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
229 additions
and
481 deletions
+229
-481
ActionInterface.py
app/main/engine/action/ActionInterface.py
+1
-1
Process.py
app/main/engine/service/Process.py
+6
-6
Dockerfile
deploy/Dockerfile
+0
-2
mysql-connector-java-8.0.30.jar
jars/mysql-connector-java-8.0.30.jar
+0
-0
emr_match-and-exclude-records-actions_v1.py
scripts/emr_match-and-exclude-records-actions_v1.py
+0
-366
match-and-exclude-records-actions_v1.py
scripts/match-and-exclude-records-actions_v1.py
+222
-106
No files found.
app/main/engine/action/ActionInterface.py
View file @
c2d602b8
...
@@ -14,7 +14,7 @@ class ActionInterface(ABC):
...
@@ -14,7 +14,7 @@ class ActionInterface(ABC):
raise
NotImplementedError
raise
NotImplementedError
@
abstractmethod
@
abstractmethod
def
process
(
self
,
source_obj
,
script_name
,
timezone
,
pattern
):
def
process
(
self
,
source_obj
):
"""Método que ejecuta la lógica del script"""
"""Método que ejecuta la lógica del script"""
raise
NotImplementedError
raise
NotImplementedError
...
...
app/main/engine/service/Process.py
View file @
c2d602b8
...
@@ -46,16 +46,16 @@ class Process:
...
@@ -46,16 +46,16 @@ class Process:
# Iniciando process
# Iniciando process
self
.
app
.
logger
.
info
(
f
"Iniciando procesamiento de script"
)
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"
)
print
(
"1"
)
# Guardando resultado
# Guardando resultado
self
.
app
.
logger
.
info
(
f
"Generado y guardando resultado"
)
self
.
app
.
logger
.
info
(
f
"Generado y guardando resultado"
)
# _
= obj_script.response()
response
=
obj_script
.
response
()
# response.show()
# response.show()
#
result = self.utils.create_result(response, self.descriptor)
result
=
self
.
utils
.
create_result
(
response
,
self
.
descriptor
)
#
save = self.utils.save_result(result, self.descriptor, db_session)
save
=
self
.
utils
.
save_result
(
result
,
self
.
descriptor
,
db_session
)
#
if save["status"] == StatusEnum.ERROR.name:
if
save
[
"status"
]
==
StatusEnum
.
ERROR
.
name
:
#
raise InterruptedError(save["message"])
raise
InterruptedError
(
save
[
"message"
])
except
TimeoutError
as
e
:
except
TimeoutError
as
e
:
self
.
app
.
logger
.
error
(
f
"Error de Timeout. Error: {e}"
)
self
.
app
.
logger
.
error
(
f
"Error de Timeout. Error: {e}"
)
status
,
status_description
=
CodeResponseEnum
.
TIMEOUT
,
str
(
e
)
status
,
status_description
=
CodeResponseEnum
.
TIMEOUT
,
str
(
e
)
...
...
deploy/Dockerfile
View file @
c2d602b8
...
@@ -9,8 +9,6 @@ tar xzf Python-3.10.0.tgz && cd Python-3.10.0 && \
...
@@ -9,8 +9,6 @@ tar xzf Python-3.10.0.tgz && cd Python-3.10.0 && \
./configure
--enable-optimizations
&&
\
./configure
--enable-optimizations
&&
\
make altinstall
make altinstall
COPY
subset_sum_linux /tmp/
COPY
requirements.txt /
RUN
python3
-m
pip
install
numpy pandas py4j python-dateutil pytz six tzdata
RUN
python3
-m
pip
install
numpy pandas py4j python-dateutil pytz six tzdata
...
...
jars/mysql-connector-java-8.0.30.jar
deleted
100644 → 0
View file @
7086b4fa
File deleted
scripts/emr_match-and-exclude-records-actions_v1.py
deleted
100644 → 0
View file @
7086b4fa
This diff is collapsed.
Click to expand it.
scripts/match-and-exclude-records-actions_v1.py
View file @
c2d602b8
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment