Skip to content

Commit

Permalink
[Backport 1.6.latest] Fix #8350: add connection status into list of s…
Browse files Browse the repository at this point in the history
…tatuses for dbt debug (#8802)

Co-authored-by: Kshitij Aranke <kshitij.aranke@dbtlabs.com>
  • Loading branch information
github-actions[bot] and aranke authored Oct 10, 2023
1 parent 0e4a6e6 commit a4d595d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .changes/unreleased/Fixes-20230810-184859.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
kind: Fixes
body: Add connection status into list of statuses for dbt debug
time: 2023-08-10T18:48:59.221344+01:00
custom:
Author: aranke
Issue: "8350"
3 changes: 2 additions & 1 deletion core/dbt/task/debug.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,13 +149,14 @@ def run(self) -> bool:
dependencies_statuses = self.test_dependencies()

# Test connection
self.test_connection()
connection_status = self.test_connection()

# Log messages from any fails
all_statuses: List[SubtaskStatus] = [
load_profile_status,
load_project_status,
*dependencies_statuses,
connection_status,
]
all_failing_statuses: List[SubtaskStatus] = list(
filter(lambda status: status.run_status == RunStatus.Error, all_statuses)
Expand Down

0 comments on commit a4d595d

Please sign in to comment.