{
  "slug": "bake-jobs-j-configures-execution-modes-and-parallelism-d67ed9a539d4",
  "title": "Bake `--jobs/-j` configures execution modes and parallelism",
  "tools": [
    "buildx"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-10-07T23:39:15.000Z",
  "announced_at": "2026-10-07T23:39:15.000Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "When coordinating Bake targets, use `--jobs` to set a concurrency limit and choose how failures or output are handled. Combine the mode and limit in one flag value, such as `--jobs=defer-error,parallel=2`.",
    "examples": [
      "docker buildx bake --jobs=defer-output",
      "docker buildx bake --jobs=defer-error,parallel=2"
    ],
    "gotchas": [
      "Version: v0.38.0",
      "--jobs, -j: Sets target execution behavior; accepts `N`, `mode[,parallel=N]`, or `mode`. Default mode is `fail-fast`.",
      "mode: Use `defer-error` to let independent targets continue after a target fails, or `defer-output` to wait until participating targets reach the output boundary before exporting. Modes are alternatives; choose one per flag value.",
      "parallel: Non-negative integer target concurrency limit. Omitted or `0` means no target concurrency limit; an integer `N` is shorthand for `parallel=N`. With `defer-output`, a nonzero limit must be at least the number of participating targets, including implicit targets referenced through `target:` contexts.",
      "Prerequisite: Bake is available through `docker buildx bake` when Buildx is installed."
    ]
  },
  "why_it_matters": "When coordinating Bake jobs for a build, configure the execution mode and parallelism limit.",
  "sources": [
    "https://github.com/docker/buildx/releases/tag/v0.38.0",
    "https://docs.docker.com/reference/cli/docker/buildx/bake/",
    "https://docs.docker.com/build/bake/introduction/"
  ],
  "rank": 0.96038,
  "judge": {
    "publish": true,
    "judge_model": "codex-cli/gpt-6-luna+typesafe/jev-1.13.0",
    "prompt_version": "extract-v7+enrich-v2+judge-v2x3+jev-publish-v1"
  },
  "review_state": "approved",
  "provenance": {
    "run_id": "wave1-20261014",
    "verdict_id": "wave1-20261014:wave1-20261014-1f39387a1b2e78af-0:gate",
    "evidence_hash": "7e4398bd32862c9813d38a1181b8c546b157391d060c6c3a8a668aab2cb3ad94"
  },
  "review": {
    "draft_hash": "a9b5175c448de9a2d2fd181f517c8dcf0e64991c9e4c6eac4a23ff9591ad3cb4",
    "reviewer": "publication-gate",
    "reviewed_at": "2026-10-07T23:39:15.000Z",
    "decision": "wave1-20261014:gate",
    "reason": "3 of 3 judge runs approved with p_yes >= 0.9 (mean 0.96 >= 0.9; 2 needed) and Jev gave 0.65 (>= 0.6 needed)."
  }
}
