Skip to content

docs(core): add technology-agnostic batch mode guide#34813

Draft
barbados-clemens wants to merge 3 commits intomasterfrom
cu/caleb-ukle/doc-420-batch-mode-explain
Draft

docs(core): add technology-agnostic batch mode guide#34813
barbados-clemens wants to merge 3 commits intomasterfrom
cu/caleb-ukle/doc-420-batch-mode-explain

Conversation

@barbados-clemens
Copy link
Contributor

Current Behavior

Batch mode documentation is scattered across individual technology pages (TypeScript, Gradle, Maven, Jest) with no central guide explaining the concept, how it works, or which executors support it.

Expected Behavior

A new guide page at guides/tasks--caching/batch-mode provides a technology-agnostic overview of batch mode, covering:

  • What batch mode is and why it's faster
  • How to enable it (NX_BATCH_MODE=true env var and --batch CLI arg)
  • Which executors support it (with notes that Gradle/Maven have it on by default)
  • Caching and CI compatibility

Each technology-specific page now links back to the central guide for the full explanation.

Related Issue(s)

Fixes #DOC-420

🤖 Generated with Claude Code

Add a new guide page explaining batch mode concepts, how to enable it,
supported executors, and caching compatibility. Link back from Gradle,
Maven, Jest, and TypeScript batch mode pages, and update the inferred
tasks page to reference the new guide.

Co-Authored-By: Claude Opus 4.6 <[email protected]>
@nx-cloud
Copy link
Contributor

nx-cloud bot commented Mar 13, 2026

View your CI Pipeline Execution ↗ for commit b769393

Command Status Duration Result
nx affected --targets=lint,test,build,e2e,e2e-c... ✅ Succeeded 10m 14s View ↗
nx run-many -t check-imports check-lock-files c... ✅ Succeeded 3m 43s View ↗
nx-cloud record -- nx-cloud conformance:check ✅ Succeeded 8s View ↗
nx-cloud record -- nx format:check ✅ Succeeded 1s View ↗
nx-cloud record -- nx sync:check ✅ Succeeded <1s View ↗

☁️ Nx Cloud last updated this comment at 2026-03-13 16:46:20 UTC

@netlify
Copy link

netlify bot commented Mar 13, 2026

Deploy Preview for nx-docs ready!

Name Link
🔨 Latest commit b769393
🔍 Latest deploy log https://app.netlify.com/projects/nx-docs/deploys/69b43c0200281d0008d363aa
😎 Deploy Preview https://deploy-preview-34813--nx-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify
Copy link

netlify bot commented Mar 13, 2026

Deploy Preview for nx-dev ready!

Name Link
🔨 Latest commit b769393
🔍 Latest deploy log https://app.netlify.com/projects/nx-dev/deploys/69b43c02527e120008724de2
😎 Deploy Preview https://deploy-preview-34813--nx-dev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Copy link
Contributor

@nx-cloud nx-cloud bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ The fix from Nx Cloud was applied automatically

We applied Prettier formatting fixes to batch-mode.mdoc to resolve the astro-docs:format check failure. The changes remove a stray blank line, strip trailing whitespace, and realign the Markdown table column widths to conform to Prettier's code style. These corrections ensure the format task passes without altering any documentation content.

Tip

We verified this fix by re-running astro-docs:format.

Suggested Fix changes
diff --git a/astro-docs/src/content/docs/guides/Tasks & Caching/batch-mode.mdoc b/astro-docs/src/content/docs/guides/Tasks & Caching/batch-mode.mdoc
index c3d67b9eb4..47c3ac339a 100644
--- a/astro-docs/src/content/docs/guides/Tasks & Caching/batch-mode.mdoc	
+++ b/astro-docs/src/content/docs/guides/Tasks & Caching/batch-mode.mdoc	
@@ -45,15 +45,14 @@ nx run-many -t test --batch
 nx run-many -t build --no-batch
 ​`​`​`
 
-
 ## Supported executors
 
-If batch mode is turned on but a plugin does not support batch mode, Nx will fall back to the regular executor implementation. 
+If batch mode is turned on but a plugin does not support batch mode, Nx will fall back to the regular executor implementation.
 
-| Executor     | Notes                                                     |
-| ------------ | --------------------------------------------------------- |
-| `@nx/js:tsc` | Uses TypeScript project references for incremental builds |
-| `@nx/jest`   | Batches test compilation across projects                  |
+| Executor     | Notes                                                                           |
+| ------------ | ------------------------------------------------------------------------------- |
+| `@nx/js:tsc` | Uses TypeScript project references for incremental builds                       |
+| `@nx/jest`   | Batches test compilation across projects                                        |
 | `@nx/gradle` | Runs multiple Gradle tasks in a single invocation. Batch mode is on by default. |
 | `@nx/maven`  | Runs multiple Maven tasks in a single invocation. Batch mode is on by default.  |
 

🔔 Heads up, your workspace has pending recommendations ↗ to auto-apply fixes for similar failures.

Revert fix via Nx Cloud  

View interactive diff ↗

🎓 Learn more about Self-Healing CI on nx.dev

nx-cloud bot and others added 2 commits March 13, 2026 14:41
Add a glossary entry for batch mode and a section on the Run Tasks
feature page explaining how to run tasks in batch mode.

Co-Authored-By: Claude Opus 4.6 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant