Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: use of datasets for airflow >= 2.4 #879

Merged
merged 10 commits into from
Apr 20, 2024
10 changes: 6 additions & 4 deletions docs/configuration/scheduling.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ To schedule a dbt project on a time-based schedule, you can use Airflow's schedu
jaffle_shop = DbtDag(
# ...
start_date=datetime(2023, 1, 1),
schedule_interval="@daily",
schedule="@daily",
)


Expand Down Expand Up @@ -45,12 +45,14 @@ Then, you can use Airflow's data-aware scheduling capabilities to schedule ``my_
project_one = DbtDag(
# ...
start_date=datetime(2023, 1, 1),
schedule_interval="@daily",
schedule="@daily",
)

project_two = DbtDag(
# ...
schedule_interval=[get_dbt_dataset("my_conn", "project_one", "my_model")],
# for airflow <=2.3
# schedule=[get_dbt_dataset("my_conn", "project_one", "my_model")],
# for airflow > 2.3
schedule=[get_dbt_dataset("my_conn", "project_one", "my_model")],
jlaneve marked this conversation as resolved.
Show resolved Hide resolved
dbt_project_name="project_two",
)

Expand Down
Loading