Skip to content

Commit

Permalink
RegistryV2 change
Browse files Browse the repository at this point in the history
  • Loading branch information
virajmparekh committed Oct 17, 2022
2 parents c365923 + e1df308 commit 9c37d34
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .astro-registry.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ categories:
dags:
- path: dags/dbt_advanced_utility.py
- path: dags/dbt_advanced.py
- path: dags/dbt_basic.py
- path: dags/dbt_basic.py
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1 +1 @@
FROM quay.io/astronomer/ap-airflow:2.2.0-buster-onbuild
FROM quay.io/astronomer/astro-runtime:6.0.0
7 changes: 7 additions & 0 deletions dags/dbt_advanced.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
"""
Exploes a dbt DAG into an Airflow DAG by parsing the dbt manifest file
Shows the data being loaded into a postgres database as part of the DAG, normally that would be preloaded.
"""

import json
from pendulum import datetime

Expand All @@ -22,6 +28,7 @@
description="A dbt wrapper for Airflow.",
schedule_interval=None,
catchup=False,
doc_md=__doc__
) as dag:

def load_manifest():
Expand Down
7 changes: 7 additions & 0 deletions dags/dbt_advanced_utility.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
"""
Shows how to parse a dbt manifest file to "explode" the dbt DAG into Airflow
Each dbt model is run as a bash command.
"""

from pendulum import datetime

from airflow import DAG
Expand All @@ -19,6 +25,7 @@
description="A dbt wrapper for Airflow using a utility class to map the dbt DAG to Airflow tasks",
schedule_interval=None,
catchup=False,
doc_md=__doc__
) as dag:

start_dummy = DummyOperator(task_id="start")
Expand Down
6 changes: 6 additions & 0 deletions dags/dbt_basic.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
"""
A basic dbt DAG that shows how to run dbt commands via the BashOperator
Follows the standard dbt seed, run, and test pattern.
"""

from pendulum import datetime

from airflow import DAG
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
dbt==0.21.1
dbt-core==1.3.0b2
pendulum==2.1.2

0 comments on commit 9c37d34

Please sign in to comment.