Skip to content

Commit

Permalink
Fix #8350: add connection status into list of statuses for dbt debug (#…
Browse files Browse the repository at this point in the history
…8351)

(cherry picked from commit b514e4c)
  • Loading branch information
aranke authored and github-actions[bot] committed Oct 10, 2023
1 parent 203e331 commit 6bc6823
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 6bc6823

Please sign in to comment.