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

Support --threads in the cli_args rpc method #1897

Closed
drewbanin opened this issue Nov 7, 2019 · 0 comments · Fixed by #1909
Closed

Support --threads in the cli_args rpc method #1897

drewbanin opened this issue Nov 7, 2019 · 0 comments · Fixed by #1909
Labels
enhancement New feature or request rpc Issues related to dbt's RPC server

Comments

@drewbanin
Copy link
Contributor

Describe the feature

Presently, the --threads flag passed when running dbt rpc --threads X will be used for subsequent cli_args tasks submitted to the rpc server. If a cli_args task provides its own --threads flag, this value is discarded. Instead, the --threads flag supplied in a cli_args task should supersede the --threads flag supplied when the rpc server was started.

# Every subsequent cli_args task should use 10 threads
dbt rpc --threads 10

# A request like this should run with 2 threads
POST /rpc
{
  "params": {
    "cli": "run --threads 2"
  }
}
@drewbanin drewbanin added enhancement New feature or request rpc Issues related to dbt's RPC server labels Nov 7, 2019
@drewbanin drewbanin added this to the Louisa May Alcott milestone Nov 7, 2019
beckjake added a commit that referenced this issue Nov 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request rpc Issues related to dbt's RPC server
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant