Skip to content

run_results.json on DAG level #1923

@dinjazelena98

Description

@dinjazelena98

Hi guys, so i have Airflow with source ingestion DAG which triggers DBT models with Astronomer Cosmos. Finally, at the end i want to push all of the metadata into OpenMetadata. Currently after source ingestion is done, it updates assets, and dbt models are triggered on that asset. Once the dbt models are done, my DAG for updating metadata is triggered. I am writing conf files for both dbt and our warehouse (Clickhouse) and then i just use BashOperator where i use metadata-ingest CLI to trigger push of metadata to OpenMetadata.

Now, my problem is that Cosmos parses my dbt by running dbt ls, and it creates a task per each model which just runs isolated dbt run . On each dbt run it generates run_results.json , which OpenMetadata uses to parse some additional metadata, do u have experience how can i do that on whole dag level not per task per model which is how is happening in Cosmos, because each model/task is separate dbt run command.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions