From 2de31ec641e8615b6a734f71868c72d5d3fc844f Mon Sep 17 00:00:00 2001 From: "Leona B. Campbell" <3880403+runleonarun@users.noreply.github.com> Date: Fri, 13 Sep 2024 13:09:22 -0700 Subject: [PATCH 1/4] Update airflow-and-dbt-cloud.md --- website/docs/guides/airflow-and-dbt-cloud.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/website/docs/guides/airflow-and-dbt-cloud.md b/website/docs/guides/airflow-and-dbt-cloud.md index 51ac7668aa9..f82badd922f 100644 --- a/website/docs/guides/airflow-and-dbt-cloud.md +++ b/website/docs/guides/airflow-and-dbt-cloud.md @@ -61,10 +61,10 @@ Follow the instructions [here](https://docs.docker.com/desktop/) to install Dock ## Clone the airflow-dbt-cloud repository -Open your terminal and clone the [airflow-dbt-cloud repository](https://github.com/sungchun12/airflow-dbt-cloud). This contains example Airflow DAGs that you’ll use to orchestrate your dbt Cloud job. Once cloned, navigate into the `airflow-dbt-cloud` project. +Open your terminal and clone the [airflow-dbt-cloud repository](https://github.com/dbt-labs/airflow-dbt-cloud). This contains example Airflow DAGs that you’ll use to orchestrate your dbt Cloud job. Once cloned, navigate into the `airflow-dbt-cloud` project. ```bash -git clone https://github.com/sungchun12/airflow-dbt-cloud.git +git clone https://github.com/dbt-labs/airflow-dbt-cloud.git cd airflow-dbt-cloud ``` @@ -140,7 +140,7 @@ Now you have all the working pieces to get up and running with Airflow + dbt Clo ## Update the placeholders in the sample code - Add your `account_id` and `job_id` to the python file [dbt_cloud_provider_eltml.py](https://github.com/sungchun12/airflow-dbt-cloud/blob/main/dags/dbt_cloud_provider_eltml.py). + Add your `account_id` and `job_id` to the python file [dbt_cloud_provider_eltml.py](https://github.com/dbt-labs/airflow-dbt-cloud/blob/main/dags/dbt_cloud_provider_eltml.py). Both IDs are included inside of the dbt Cloud job URL as shown in the following snippets: @@ -247,4 +247,4 @@ Yes, either through [Airflow's email/slack](https://www.astronomer.io/guides/err Check out [this recording](https://www.youtube.com/watch?v=n7IIThR8hGk) of a dbt meetup for some tips. - \ No newline at end of file + From 1fb276f47f671912dc4adc6dd0ab9eeb1f377148 Mon Sep 17 00:00:00 2001 From: "Leona B. Campbell" <3880403+runleonarun@users.noreply.github.com> Date: Fri, 13 Sep 2024 13:21:00 -0700 Subject: [PATCH 2/4] updating code snippet --- website/docs/guides/airflow-and-dbt-cloud.md | 21 ++++---------------- 1 file changed, 4 insertions(+), 17 deletions(-) diff --git a/website/docs/guides/airflow-and-dbt-cloud.md b/website/docs/guides/airflow-and-dbt-cloud.md index f82badd922f..1ae210f8e4c 100644 --- a/website/docs/guides/airflow-and-dbt-cloud.md +++ b/website/docs/guides/airflow-and-dbt-cloud.md @@ -146,23 +146,10 @@ Both IDs are included inside of the dbt Cloud job URL as shown in the following ```python # For the dbt Cloud Job URL https://YOUR_ACCESS_URL/#/accounts/16173/projects/36467/jobs/65767/ -# The account_id is 16173 - -# Update line 28 -default_args={"dbt_cloud_conn_id": "dbt_cloud", "account_id": 16173}, -``` - -```python -# For the dbt Cloud Job URL https://YOUR_ACCESS_URL/#/accounts/16173/projects/36467/jobs/65767/ -# The job_id is 65767 - -# Update line 39 -trigger_dbt_cloud_job_run = DbtCloudRunJobOperator( - task_id="trigger_dbt_cloud_job_run", - job_id=65767, - check_interval=10, - timeout=300, - ) +# The account_id is 16173 and the job_id is 65767 +# Update lines 34 and 35 +ACCOUNT_ID = "16173" +JOB_ID = "65767" ``` From 710fbdf1ee314e9bc5e9aa971d113c74c768e315 Mon Sep 17 00:00:00 2001 From: "Leona B. Campbell" <3880403+runleonarun@users.noreply.github.com> Date: Fri, 13 Sep 2024 13:21:10 -0700 Subject: [PATCH 3/4] Apply suggestions from code review --- website/docs/guides/airflow-and-dbt-cloud.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/docs/guides/airflow-and-dbt-cloud.md b/website/docs/guides/airflow-and-dbt-cloud.md index 1ae210f8e4c..c3adaef8f9b 100644 --- a/website/docs/guides/airflow-and-dbt-cloud.md +++ b/website/docs/guides/airflow-and-dbt-cloud.md @@ -140,7 +140,7 @@ Now you have all the working pieces to get up and running with Airflow + dbt Clo ## Update the placeholders in the sample code - Add your `account_id` and `job_id` to the python file [dbt_cloud_provider_eltml.py](https://github.com/dbt-labs/airflow-dbt-cloud/blob/main/dags/dbt_cloud_provider_eltml.py). + Add your `account_id` and `job_id` to the python file [dbt_cloud_run_job.py](https://github.com/dbt-labs/airflow-dbt-cloud/blob/main/dags/dbt_cloud_run_job.py). Both IDs are included inside of the dbt Cloud job URL as shown in the following snippets: From 559b89673f05c2007feb3b9e1aafb65577e9b267 Mon Sep 17 00:00:00 2001 From: "Leona B. Campbell" <3880403+runleonarun@users.noreply.github.com> Date: Fri, 13 Sep 2024 14:01:03 -0700 Subject: [PATCH 4/4] Update airflow-and-dbt-cloud.md --- website/docs/guides/airflow-and-dbt-cloud.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/docs/guides/airflow-and-dbt-cloud.md b/website/docs/guides/airflow-and-dbt-cloud.md index c3adaef8f9b..c55940212bc 100644 --- a/website/docs/guides/airflow-and-dbt-cloud.md +++ b/website/docs/guides/airflow-and-dbt-cloud.md @@ -68,7 +68,7 @@ git clone https://github.com/dbt-labs/airflow-dbt-cloud.git cd airflow-dbt-cloud ``` - +For more information about cloning GitHub repositories, refer to "[Cloning a repository](https://docs.github.com/en/repositories/creating-and-managing-repositories/cloning-a-repository)" in the GitHub documentation. ## Start the Docker container