You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Surfacing of DBT Cloud Logs to the logs of the DBTCloudRunJobOperator #46923
Currently if a DBT Cloud Job triggered by the DBT Cloud Job Operator fails. The airflow task which uses the operator will fail and error but it will not get the logs from DBT Cloud so we are aware of why it failed.
Use case/motivation
Easier developer experience when debugging tasks. Helps remove extra steps when seeing why a DAG has failed.
Thanks for opening your first issue here! Be sure to follow the issue template! If you are willing to raise PR to address this issue please do so, no need to wait for approval.
However, you get all steps of a DAG back including preliminary steps like Clone git repository. I was thinking of surfacing only the steps with status: 20 (i.e. ERROR). Would that be helpful @harveymarshall ?
This is not meant to discourage your contribution — quite the opposite! You are still very welcome to work on this issue and submit a PR for it. Simply comment that you are working on it and open a PR when ready.
We found that formal assignments were not working well, as they often prevented others from contributing when the assignee was not actively working on the issue.
Opened #70171 to surface dbt Cloud run failure details (status message and failed run steps) in Airflow task logs when a job run reaches ERROR or CANCELLED.
Activity
boring-cyborg commentedon Feb 20, 2025
Thanks for opening your first issue here! Be sure to follow the issue template! If you are willing to raise PR to address this issue please do so, no need to wait for approval.
geraj1010 commentedon Mar 9, 2025
Took a quick look and I think this is possible. Just need update
DbtCloudHookto pull the logging that's available from the API response. Perhaps we would want to grabstatus_messagefromRetrieve Runresponse? (https://docs.getdbt.com/dbt-cloud/api-v2#/operations/Retrieve%20Run)I'd be happy to take this on if no one else already hasn't.
potiuk commentedon Mar 9, 2025
Feel free :D
harveymarshall commentedon Mar 12, 2025
Any updates has this been taken up? Any updates would be appreciated :)
geraj1010 commentedon Mar 18, 2025
Greetings! I should have an update later this week :) Just coming off of a cold.
geraj1010 commentedon Mar 24, 2025
Took a deeper dive and it looks like the logs (for steps) can be found with this API URL:
https://YOUR_ACCESS_URL/api/v2/accounts/{accountId}/runs/{runId}/?include_related=["run_steps"](Source: https://docs.getdbt.com/docs/dbt-versions/2022-release-notes?utm_source=forethought-chat&utm_lp=forethought-chat#list-steps-api-endpoint-deprecation-warning)However, you get all steps of a DAG back including preliminary steps like
Clone git repository. I was thinking of surfacing only the steps withstatus: 20(i.e. ERROR). Would that be helpful @harveymarshall ?Created new exception, that provides details of each step of a job ru…
Created new exception, that provides details of each step of a job ru…
apache#46923 - Updated per comments
apache#46923 - Updated per comments
apache#46923 - Fixed error with new exception
potiuk commentedon Mar 2, 2026
@geraj1010 We are unassigning you from this issue as part of our updated assignment policy.
This is not meant to discourage your contribution — quite the opposite! You are still very welcome to work on this issue and submit a PR for it. Simply comment that you are working on it and open a PR when ready.
We found that formal assignments were not working well, as they often prevented others from contributing when the assignee was not actively working on the issue.
br413 commentedon Jul 21, 2026
Opened #70171 to surface dbt Cloud run failure details (status message and failed run steps) in Airflow task logs when a job run reaches ERROR or CANCELLED.
Surface dbt Cloud failure details in Airflow task logs (#70171)