diff --git a/docs/configuration/scheduling.rst b/docs/configuration/scheduling.rst index de21f8495..a1275ee19 100644 --- a/docs/configuration/scheduling.rst +++ b/docs/configuration/scheduling.rst @@ -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", ) @@ -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", )