Skip to content

Commit

Permalink
docs: use of datasets for airflow >= 2.4 (astronomer#879)
Browse files Browse the repository at this point in the history
schedule is right parameter name

## Description

schedule is right parameter name. 

## Related Issue(s)

<!-- If this PR closes an issue, you can use a keyword to auto-close.
-->
<!-- i.e. "closes #0000" -->

## Breaking Change?

<!-- If this introduces a breaking change, specify that here. -->

## Checklist

- [ ] I have made corresponding changes to the documentation (if
required)
- [ ] I have added tests that prove my fix is effective or that my
feature works

---------

Co-authored-by: Tatiana Al-Chueyr <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
3 people authored and arojasb3 committed Jul 14, 2024
1 parent 24edcb0 commit a31b9e6
Showing 1 changed file with 6 additions and 4 deletions.
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")],
dbt_project_name="project_two",
)
Expand Down

0 comments on commit a31b9e6

Please sign in to comment.