coderxio / sagerx

Open drug data pipelines curated by pharmacists.
https://coderx.io/sagerx
Other
41 stars 11 forks source link

Schedule dbt build of marts that depend on multiple data sources #262

Closed jrlegrand closed 2 months ago

jrlegrand commented 4 months ago

Problem Statement

NDC Description mart is currently only manually triggered. It depends on 5 different Airflow DAGs.

Same for our ATC to RxNorm mart.

Criteria for Success

Additional Information

We've considered two approaches to this. There may be other, better ones.

  1. Create an Airflow DAG called marts that just schedules dbt build actions.
  2. Trigger mart build at the end of each of the 5 (or whatever) dependent DAGs.