-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Fixes dbt retry does not respect --threads #10591
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #10591 +/- ##
==========================================
+ Coverage 88.91% 89.11% +0.19%
==========================================
Files 180 183 +3
Lines 22755 23765 +1010
==========================================
+ Hits 20232 21177 +945
- Misses 2523 2588 +65
Flags with carried forward coverage won't be shown. Click here to find out more.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @donjin-master for adding this patch!
LGTM in general, one small question about the tests
|
||
assert {n.node.name: n.status for n in results.results} == expected_statuses | ||
assert results.args["threads"] == 1 | ||
write_file(models__thread_model, "models", "thread_model.sql") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this and the write_file
above needed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@donjin-master Hope you don't mind, I am removing the last line here and going to merge it afterwards
Resolves #10584
Problem
Solving the problem when retry has been run. dbt does not respect a new --threads value when passed in on a retry.
Solution
Added the threads in ALLOW_CLI_OVERRIDE_FLAGS to fetch the thread value
Checklist