Skip to content

Commit 5add25d

Browse files
authored
Guarantee instantiation result and thread_exception prior to access (#12013)
1 parent ad6ea20 commit 5add25d

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
kind: Fixes
2+
body: Guarantee instantiation result and thread_exception prior to access to avoid thread hangs
3+
time: 2025-09-12T14:51:13.355232-04:00
4+
custom:
5+
Author: michelleark
6+
Issue: "12013"

core/dbt/task/runnable.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,11 +233,14 @@ def call_runner(self, runner: BaseRunner) -> RunResult:
233233
node_info=runner.node.node_info,
234234
)
235235
)
236+
237+
result = None
238+
thread_exception: Optional[Union[KeyboardInterrupt, SystemExit, Exception]] = None
236239
try:
237240
result = runner.run_with_hooks(self.manifest)
238241
except (KeyboardInterrupt, SystemExit) as exe:
239242
result = None
240-
thread_exception: Union[KeyboardInterrupt, SystemExit, Exception] = exe
243+
thread_exception = exe
241244
raise
242245
except Exception as e:
243246
result = None

0 commit comments

Comments
 (0)