-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add dbt mesh to main page and improve tests (#52)
* Tests run dbt clean before tests * Tests run dbt clean before tests
- Loading branch information
1 parent
318c762
commit 580769f
Showing
7 changed files
with
50 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
from pathlib import Path | ||
|
||
from airflow import DAG | ||
from airflow.utils.dates import days_ago | ||
|
||
from opendbt.airflow import OpenDbtAirflowProject | ||
|
||
default_args = { | ||
'owner': 'airflow', | ||
'depends_on_past': False, | ||
'email_on_failure': False, | ||
'email_on_retry': False, | ||
'retries': 1 | ||
} | ||
|
||
with DAG( | ||
dag_id='dbt_mesh_workflow', | ||
default_args=default_args, | ||
description='DAG To run multiple dbt projects', | ||
schedule_interval=None, | ||
start_date=days_ago(3), | ||
catchup=False, | ||
max_active_runs=1 | ||
) as dag: | ||
DBT_PROJ_DIR = Path("/opt/dbtfinance") | ||
|
||
p = OpenDbtAirflowProject(project_dir=DBT_PROJ_DIR, profiles_dir=DBT_PROJ_DIR, target='dev') | ||
p.load_dbt_tasks(dag=dag, include_singular_tests=True, include_dbt_seeds=True) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters