Skip to content

Commit e9f8d0f

Browse files
branchseerclaude
andcommitted
fix: correct concurrency resolution order in docs and comments
--parallel takes priority over VP_RUN_CONCURRENCY_LIMIT, not the other way around. The code was correct; the docs and comments were not. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 7c255fb commit e9f8d0f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

crates/vite_task_plan/src/plan.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -679,8 +679,8 @@ pub async fn plan_query_request(
679679
//
680680
// Priority (highest to lowest):
681681
// 1. `--concurrency-limit N` CLI flag
682-
// 2. `VP_RUN_CONCURRENCY_LIMIT` env var
683-
// 3. `--parallel` (without the above) → unlimited
682+
// 2. `--parallel` (without the above) → unlimited
683+
// 3. `VP_RUN_CONCURRENCY_LIMIT` env var
684684
// 4. `DEFAULT_CONCURRENCY_LIMIT` (4)
685685
let effective_concurrency = match plan_options.concurrency_limit {
686686
Some(n) => n,

docs/concurrency.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,6 @@ Equivalent flags in other tools:
5454
The concurrency limit is resolved in this order (first match wins):
5555

5656
1. `--concurrency-limit` CLI flag
57-
2. `VP_RUN_CONCURRENCY_LIMIT` env var
58-
3. `--parallel` without the above → unlimited
57+
2. `--parallel` without the above → unlimited
58+
3. `VP_RUN_CONCURRENCY_LIMIT` env var
5959
4. Default: 4

0 commit comments

Comments
 (0)