-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[CT-2267] [Bug] Unexpected stacktrace for dbt --fail-fast run
#7118
Comments
dbt --fail-fast run
dbt --fail-fast run
@jtcohen6 offered this hunch in Slack:
|
@dbeatty10 Should we raise a small exception without the traceback here, or should we continue firing the traceback event as we did in 1.4? @jtcohen6 This may be a good idea to pull out into a spike or a bigger discussion given we're not sure how exceptions should be handled in the cli vs from |
@stu-k the traceback in this case was surprising, so definitely without the stacktrace. From here it looks like the MainStackTrace was only fired if the exception was not a @jtcohen6 had an idea how to handle exceptions in #7010 (comment), so maybe that can be an idea considered in a spike or bigger discussion. |
This requires modifying (= re-adding) the same spot in the execution flow as #7010, so we've estimated this one as an extension of that one. |
This ticket can be closed when:
Restoring these logging events is also needed for |
Is this a new bug in dbt-core?
Current Behavior
With
1.5.0-b2
, runningdbt --fail-fast run
emits a long stack trace to standard out.Expected Behavior
I'd like a TL;DR of the error emitted to standard out instead.
Steps To Reproduce
Let's say I have a model like this:
my_bad_model.sql
And then I run it:
I get reasonable output like this when using dbt-redshift:
But then I try to add the
--fail-fast
flagThe output dumps a big long stacktrace to standard out 😢
Relevant log output
No response
Environment
Which database adapter are you using with dbt?
redshift
Additional Context
No response
The text was updated successfully, but these errors were encountered: