FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
airflow-dbt-python/examples/basic_dag.py at master · OmnipresentGroup/airflow-dbt-python · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
This repository was archived by the owner on Jan 9, 2023. It is now read-only.
OmnipresentGroup
/
airflow-dbt-python
Public archive
forked from
tomasfarias/airflow-dbt-python
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
1
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
airflow-dbt-python
/
examples
/
basic_dag.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
24 lines (22 loc) · 686 Bytes
Breadcrumbs
airflow-dbt-python
/
examples
/
basic_dag.py
Copy path
File metadata and controls
24 lines (22 loc) · 686 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
"""Sample basic DAG which dbt runs a project."""
import
datetime
as
dt
from
airflow
import
DAG
from
airflow
.
utils
.
dates
import
days_ago
from
airflow_dbt_python
.
dbt
.
operators
import
DbtRunOperator
with
DAG
(
dag_id
=
"example_basic_dbt_run"
,
schedule_interval
=
"0 * * * *"
,
start_date
=
days_ago
(
1
),
catchup
=
False
,
dagrun_timeout
=
dt
.
timedelta
(
minutes
=
60
),
)
as
dag
:
dbt_run
=
DbtRunOperator
(
task_id
=
"dbt_run_hourly"
,
project_dir
=
"/path/to/my/dbt/project/"
,
profiles_dir
=
"~/.dbt/"
,
select
=
[
"+tag:hourly"
],
exclude
=
[
"tag:deprecated"
],
target
=
"production"
,
profile
=
"my-project"
,
full_refresh
=
False
,
)
Back
|
FazBrowse Home
|
New Git URL