Skip to content
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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

donjin-master
Copy link

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

  • I have read the contributing guide and understand what's expected of me.
  • I have run this code in development, and it appears to resolve the stated issue.
  • This PR includes tests.

@donjin-master donjin-master requested a review from a team as a code owner August 22, 2024 07:03
@cla-bot cla-bot bot added the cla:yes label Aug 22, 2024
@github-actions github-actions bot added the community This PR is from a community member label Aug 22, 2024
Copy link

codecov bot commented Aug 23, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 88.86%. Comparing base (bba020f) to head (014990c).
Report is 105 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #10591      +/-   ##
==========================================
- Coverage   88.91%   88.86%   -0.05%     
==========================================
  Files         180      180              
  Lines       22755    22755              
==========================================
- Hits        20232    20222      -10     
- Misses       2523     2533      +10     
Flag Coverage Δ
integration 86.10% <100.00%> (-0.11%) ⬇️
unit 62.34% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Components Coverage Δ
Unit Tests 62.34% <100.00%> (ø)
Integration Tests 86.10% <100.00%> (-0.11%) ⬇️

Copy link
Contributor

@ChenyuLInx ChenyuLInx left a 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")
Copy link
Contributor

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?

@graciegoheen graciegoheen added the ready_for_review Externally contributed PR has functional approval, ready for code review from Core engineering label Nov 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla:yes community This PR is from a community member ready_for_review Externally contributed PR has functional approval, ready for code review from Core engineering
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug] dbt retry does not respect --threads
3 participants