mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-07-12 19:48:26 +00:00

--------- Co-authored-by: Shailesh Parmar <shailesh.parmar.webdev@gmail.com> Co-authored-by: Pablo Takara <pjt1991@gmail.com> Co-authored-by: Chira Madlani <chirag@getcollate.io> Co-authored-by: Chirag Madlani <12962843+chirag-madlani@users.noreply.github.com> Co-authored-by: Pere Miquel Brull <peremiquelbrull@gmail.com>
46 lines
2.1 KiB
Python
46 lines
2.1 KiB
Python
# Copyright 2021 Collate
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
# you may not use this file except in compliance with the License.
|
|
# You may obtain a copy of the License at
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
# See the License for the specific language governing permissions and
|
|
# limitations under the License.
|
|
"""
|
|
DAG builder registry.
|
|
|
|
Add a function for each type from PipelineType
|
|
"""
|
|
from openmetadata_managed_apis.workflows.ingestion.application import (
|
|
build_application_dag,
|
|
)
|
|
from openmetadata_managed_apis.workflows.ingestion.dbt import build_dbt_dag
|
|
from openmetadata_managed_apis.workflows.ingestion.es_reindex import (
|
|
build_es_reindex_dag,
|
|
)
|
|
from openmetadata_managed_apis.workflows.ingestion.lineage import build_lineage_dag
|
|
from openmetadata_managed_apis.workflows.ingestion.metadata import build_metadata_dag
|
|
from openmetadata_managed_apis.workflows.ingestion.profiler import build_profiler_dag
|
|
from openmetadata_managed_apis.workflows.ingestion.test_suite import (
|
|
build_test_suite_dag,
|
|
)
|
|
from openmetadata_managed_apis.workflows.ingestion.usage import build_usage_dag
|
|
|
|
from metadata.generated.schema.entity.services.ingestionPipelines.ingestionPipeline import (
|
|
PipelineType,
|
|
)
|
|
from metadata.utils.dispatch import enum_register
|
|
|
|
build_registry = enum_register()
|
|
|
|
build_registry.add(PipelineType.metadata.value)(build_metadata_dag)
|
|
build_registry.add(PipelineType.usage.value)(build_usage_dag)
|
|
build_registry.add(PipelineType.lineage.value)(build_lineage_dag)
|
|
build_registry.add(PipelineType.dbt.value)(build_dbt_dag)
|
|
build_registry.add(PipelineType.profiler.value)(build_profiler_dag)
|
|
build_registry.add(PipelineType.TestSuite.value)(build_test_suite_dag)
|
|
build_registry.add(PipelineType.elasticSearchReindex.value)(build_es_reindex_dag)
|
|
build_registry.add(PipelineType.application.value)(build_application_dag)
|