Pere Miquel Brull 51491c3988
[Docs] - How to run the Ingestion Framework (#12251)
* Rename docs and clean SSO

* Add connector partials

* Add connector partials

* Rename path

* Add upgrade prerequisites

* Prep ingestion deployments

* Add GitHub Actions

* Fix img

* Fix link
2023-07-02 11:58:48 +02:00

1.0 KiB

Ingestion Workflow classes

We have different classes for different types of workflows. The logic is always the same, but you will need to change your import path. The rest of the method calls will remain the same.

For example, for the Metadata workflow we'll use:

import yaml

from metadata.ingestion.api.workflow import Workflow

def run():
    workflow_config = yaml.safe_load(CONFIG)
    workflow = Workflow.create(workflow_config)
    workflow.execute()
    workflow.raise_from_status()
    workflow.print_status()
    workflow.stop()

The classes for each workflow type are:

  • Metadata: from metadata.ingestion.api.workflow import Workflow
  • Lineage: from metadata.ingestion.api.workflow import Workflow
  • Usage: from metadata.ingestion.api.workflow import Workflow
  • dbt: from metadata.ingestion.api.workflow import Workflow
  • Profiler: from metadata.profiler.api.workflow import ProfilerWorkflow
  • Data Quality: from metadata.data_quality.api.workflow import TestSuiteWorkflow