Skip to content

Commit 7de8687

Browse files
author
Kolea Plesco
committed
Merge remote-tracking branch 'origin/main' into feature/TED-1057
2 parents 4a94d7c + 1402823 commit 7de8687

11 files changed

Lines changed: 9522 additions & 10234 deletions

File tree

dags/fetch_notices_by_query.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222

2323
@dag(default_args=DEFAULT_DAG_ARGUMENTS,
24-
catchup=False,
24+
schedule_interval=None,
2525
tags=['fetch'])
2626
def fetch_notices_by_query():
2727
@task

dags/operators/DagBatchPipelineOperator.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
smart_xcom_push
99
from dags.pipelines.pipeline_protocols import NoticePipelineCallable
1010
from ted_sws import config
11-
from ted_sws.core.model.notice import NoticeStatus
1211
from ted_sws.data_manager.adapters.notice_repository import NoticeRepository
1312
from ted_sws.event_manager.model.event_message import EventMessage, NoticeEventMessage
1413
from ted_sws.event_manager.services.log import log_notice_error
@@ -18,7 +17,7 @@
1817
START_WITH_STEP_NAME_KEY = "start_with_step_name"
1918
EXECUTE_ONLY_ONE_STEP_KEY = "execute_only_one_step"
2019
DEFAULT_NUBER_OF_CELERY_WORKERS = 144 # TODO: revise this config
21-
NOTICE_PROCESS_WORKFLOW_DAG_NAME = "notice_process_workflow"
20+
NOTICE_PROCESSING_PIPELINE_DAG_NAME = "notice_processing_pipeline"
2221
DEFAULT_START_WITH_TASK_ID = "notice_normalisation_pipeline"
2322
DEFAULT_PIPELINE_NAME_FOR_LOGS = "unknown_pipeline_name"
2423

@@ -136,7 +135,7 @@ def execute(self, context: Any):
136135
for notice_batch in chunks(notice_ids, chunk_size=batch_size):
137136
TriggerDagRunOperator(
138137
task_id=f'trigger_worker_dag_{uuid4().hex}',
139-
trigger_dag_id=NOTICE_PROCESS_WORKFLOW_DAG_NAME,
138+
trigger_dag_id=NOTICE_PROCESSING_PIPELINE_DAG_NAME,
140139
conf={
141140
NOTICE_IDS_KEY: list(notice_batch),
142141
START_WITH_STEP_NAME_KEY: self.start_with_step_name,

setup.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
kwargs["extras_require"] = {
2525
}
2626

27-
2827
def find_version(filename):
2928
_version_re = re.compile(r'__version__ = "(.*)"')
3029
for line in open(filename):
@@ -43,7 +42,7 @@ def open_local(paths, mode="r", encoding="utf8"):
4342

4443
version = find_version("ted_sws/__init__.py")
4544

46-
packages = find_packages(exclude=("examples*", "test*"))
45+
packages = find_packages(exclude=("examples*", "tests*", "dags*", "notebooks*", "infra*", "docs*"))
4746

4847
setup(
4948
name="ted_sws",

ted_sws/mapping_suite_processor/services/conceptual_mapping_processor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
CONCEPTUAL_MAPPINGS_ASSERTIONS = "cm_assertions"
2121
SHACL_SHAPE_INJECTION_FOLDER = "ap_data_shape"
2222
SHACL_SHAPE_RESOURCES_FOLDER = "shacl_shapes"
23-
SHACL_SHAPE_FILE_NAME = "ePO_shacl_shapes.rdf"
23+
SHACL_SHAPE_FILE_NAME = "ePO_shacl_shapes.ttl"
2424
MAPPING_FILES_RESOURCES_FOLDER = "mapping_files"
2525
SPARQL_QUERIES_RESOURCES_FOLDER = "queries"
2626
SPARQL_QUERIES_INJECTION_FOLDER = "business_queries"

0 commit comments

Comments
 (0)