Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Parallel Execution

By default dependencies run one after another in declaration order. Set parallel = true to run them concurrently; the task starts after all of them finish (fan-out / fan-in).

## ci

```meta
depends = ["lint", "test", "build"]
parallel = true
```

```bash
echo "all checks passed"
```
  • Only real dependency edges constrain ordering: a task starts as soon as its own dependencies are done.
  • Output is prefixed with the task name (for example lint │ output; see Output modes); each task reports ✔/✘ with its duration.
  • The first failure aborts the run: running tasks (and the processes they started) are stopped. -k/--keep-going lets independent tasks finish; dependents of a failed task are not run.
  • --parallel forces concurrency regardless of the file; -j N/--jobs N caps concurrent tasks (-j 1 is sequential). Default: number of CPUs.
  • stdin is closed for tasks in parallel runs; keep interactive tasks sequential. Dry-run is always sequential.

Output modes

--output chooses how task output is shown:

ModeBehavior
(default)raw output for sequential runs, prefixed lines (lint │ ...) for concurrent ones
interleavedraw lines as they arrive, never prefixed
prefixedevery line tagged with its task name, even when sequential
groupeach task's output is held back and printed as one block when the task finishes, which keeps CI logs readable (each task holds at most 64 MiB; past that the held part is printed and the rest streams with a task │ prefix)
mq-task ci --output group

On GitHub Actions (GITHUB_ACTIONS=true) group wraps each task's block in ::group::name / ::endgroup::, so the log folds per task. A failed run also prints an ::error:: annotation with the error, in any output mode.

prefixed and group pipe task output, so stdin is closed for tasks (as in parallel runs) and programs may stop colouring their output. The TUI draws its own log pane and ignores --output.