Skip to content

--parallel is not being respected when running with run-many #34117

@yharaskrik

Description

@yharaskrik

Current Behavior

When I run: nx run-many -t integration --parallel 2

I am seeing more than 2 tasks get run at a time.

Image

Expected Behavior

Should respect parallel.

GitHub Repo

No response

Steps to Reproduce

  1. use run-many with a task and have parallel set.
  2. Maybe has to do with continuous tasks as I have a number of those?

Nx Report

➜ nx report

 NX   Report complete - copy this into the issue template

Node           : 24.12.0
OS             : darwin-arm64
Native Target  : aarch64-macos
bun            : 1.3.5

nx                     : 22.1.0
@nx/js                 : 22.1.0
@nx/jest               : 22.1.0
@nx/eslint             : 22.1.0
@nx/workspace          : 22.1.0
@nx/angular            : 22.1.0
@nx/cypress            : 22.1.0
@nx/devkit             : 22.1.0
@nx/eslint-plugin      : 22.1.0
@nx/express            : 22.1.0
@nx/module-federation  : 22.1.0
@nx/nest               : 22.1.0
@nx/node               : 22.1.0
@nx/playwright         : 22.1.0
@nx/plugin             : 22.1.0
@nx/rspack             : 22.1.0
@nx/storybook          : 22.1.0
@nx/vite               : 22.1.0
@nx/vitest             : 22.1.0
@nx/web                : 22.1.0
@nx/webpack            : 22.1.0
@nx/docker             : 22.1.0
typescript             : 5.8.3

Failure Logs

Package Manager Version

No response

Operating System

  • macOS
  • Linux
  • Windows
  • Other (Please specify)

Additional Information

I would actually be ok with this if it was just dependant tasks not respecting it (would love to be able to define max parallels when running commands like we can with DTE distribution configs, so for example graphql-codegen can run at a higher parallel than say I give the run-many -t integration.

Metadata

Metadata

Assignees

Labels

priority: highHigh Priority (important issues which affect many people severely)scope: corecore nx functionalitytype: bug

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions