When a task misbehaves
When a task misbehaves
A task hangs, gets killed, prompts for input, or calls vx run on itself. vx tells you what happened in one line.
A broken build skips only what depends on it, and each skip names the failure. One flag picks fail-fast or run-everything.
A broken build skips only what depends on it. Everything else runs, and each skip names the failure behind it.
flowchart LR A["a#build ◼ failed"] -->|blocks| C["c#build ⊘ skipped"] B["b#build ✓"] D["d#build ✓"] style A stroke:#e5484d,stroke-width:2px
packages/a has a syntax error. c#build depends on a#build. b
and d don’t:
$ vx run build test --all ⏺︎ 7ms success no-cache packages/e#codegen ◼︎ 10ms failed miss packages/a#test ◼︎ 10ms failed miss packages/a#build ⊘ skipped packages/c#build • blocked by packages/a#build┌─ packages/a#test > failed (exit 1)…12 | export const = ; ^error: Expected identifier but found "="b and d were cache hits, so they print nothing. A skip names the
failure that started it, so you fix one thing.
Demo workspace · vx 69617eb · 2026-10-23
| Flag | On a failure |
|---|---|
| (none) | skip its dependents, run the rest |
--fail-fast |
kill the running tasks and stop the run at once |
$ vx run build test --all --fail-fastA task killed this way ends aborted and saves nothing, so the next run
executes it again.
--concurrency takes a count or a share of the CPUs:
$ vx run build --all --concurrency 8$ vx run build --all --concurrency 50% # half the CPUs, never below 1$ vx run lint --all --concurrency 200% # I/O-bound work can go overThe default is the core count, capped by the container’s CPU quota.
run.concurrency in .vx/workspace.ts changes it for everyone.
Cache hits don’t count: restores run on their own lane, up to twice the limit.
--verbosity 1 adds one row per task after the run:
$ vx run build --all --verbosity 1packages/e#codegen success 10mspackages/a#build failed (exit 1) 8mspackages/c#build skipped (blocked by packages/a#build) 0msEvery flag is in the CLI reference. More at vznjs.github.io/vx.