Skip to content

fix(core): treat undefined task parallelism as parallel when scheduling#35736

Merged
FrozenPandaz merged 2 commits into
masterfrom
fix/task-parallelism-undefined
May 19, 2026
Merged

fix(core): treat undefined task parallelism as parallel when scheduling#35736
FrozenPandaz merged 2 commits into
masterfrom
fix/task-parallelism-undefined

Conversation

@FrozenPandaz

@FrozenPandaz FrozenPandaz commented May 19, 2026

Copy link
Copy Markdown
Contributor

Current Behavior

When deciding whether a task can be scheduled, TasksSchedule checked task.parallelism === true in two places:

  • canBeScheduled — gating a task against already-running parallel tasks
  • canBatchTaskBeScheduled — gating a task for batch scheduling

A task whose parallelism is undefined failed both checks and was blocked, even though undefined is meant to mean "parallel". This was also inconsistent with the running-tasks check, which uses parallelism === false — treating undefined as parallel-capable.

Expected Behavior

A task with parallelism === undefined is treated as parallel in both the regular and batch scheduling checks. Both now use parallelism !== false, matching the convention used elsewhere and the documented default.

Related Issue(s)

N/A

@netlify

netlify Bot commented May 19, 2026

Copy link
Copy Markdown

Deploy Preview for nx-docs ready!

Name Link
🔨 Latest commit 4d5bc4f
🔍 Latest deploy log https://app.netlify.com/projects/nx-docs/deploys/6a0c9411bb87c70008e7a13c
😎 Deploy Preview https://deploy-preview-35736--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

netlify Bot commented May 19, 2026

Copy link
Copy Markdown

Deploy Preview for nx-dev ready!

Name Link
🔨 Latest commit 4d5bc4f
🔍 Latest deploy log https://app.netlify.com/projects/nx-dev/deploys/6a0c94116f3f610008f3f871
😎 Deploy Preview https://deploy-preview-35736--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.

@nx-cloud

nx-cloud Bot commented May 19, 2026

Copy link
Copy Markdown
Contributor

View your CI Pipeline Execution ↗ for commit 4d5bc4f

Command Status Duration Result
nx affected --targets=lint,test,build,e2e,e2e-c... ✅ Succeeded 39m 48s View ↗
nx run-many -t check-imports check-lock-files c... ✅ Succeeded 3s View ↗
nx-cloud record -- pnpm nx-cloud conformance:check ✅ Succeeded 9s View ↗
nx build workspace-plugin ✅ Succeeded <1s View ↗
nx-cloud record -- nx sync:check ✅ Succeeded 20s View ↗
nx-cloud record -- nx format:check ✅ Succeeded 5s View ↗

☁️ Nx Cloud last updated this comment at 2026-05-19 17:30:41 UTC

@FrozenPandaz FrozenPandaz marked this pull request as ready for review May 19, 2026 16:54
@FrozenPandaz FrozenPandaz requested a review from a team as a code owner May 19, 2026 16:54
@FrozenPandaz FrozenPandaz requested a review from lourw May 19, 2026 16:54
@FrozenPandaz FrozenPandaz merged commit 05c5589 into master May 19, 2026
27 checks passed
@FrozenPandaz FrozenPandaz deleted the fix/task-parallelism-undefined branch May 19, 2026 17:59
FrozenPandaz added a commit that referenced this pull request May 19, 2026
…ng (#35736)

## Current Behavior

When deciding whether a task can be scheduled, `TasksSchedule` checked
`task.parallelism === true` in two places:

- `canBeScheduled` — gating a task against already-running parallel
tasks
- `canBatchTaskBeScheduled` — gating a task for batch scheduling

A task whose `parallelism` is `undefined` failed both checks and was
blocked, even though `undefined` is meant to mean "parallel". This was
also inconsistent with the running-tasks check, which uses `parallelism
=== false` — treating `undefined` as parallel-capable.

## Expected Behavior

A task with `parallelism === undefined` is treated as parallel in both
the regular and batch scheduling checks. Both now use `parallelism !==
false`, matching the convention used elsewhere and the documented
default.

## Related Issue(s)

N/A

(cherry picked from commit 05c5589)
FrozenPandaz added a commit that referenced this pull request May 19, 2026
…ng (#35736)

## Current Behavior

When deciding whether a task can be scheduled, `TasksSchedule` checked
`task.parallelism === true` in two places:

- `canBeScheduled` — gating a task against already-running parallel
tasks
- `canBatchTaskBeScheduled` — gating a task for batch scheduling

A task whose `parallelism` is `undefined` failed both checks and was
blocked, even though `undefined` is meant to mean "parallel". This was
also inconsistent with the running-tasks check, which uses `parallelism
=== false` — treating `undefined` as parallel-capable.

## Expected Behavior

A task with `parallelism === undefined` is treated as parallel in both
the regular and batch scheduling checks. Both now use `parallelism !==
false`, matching the convention used elsewhere and the documented
default.

## Related Issue(s)

N/A

(cherry picked from commit 05c5589)
FrozenPandaz added a commit that referenced this pull request May 19, 2026
…ng (#35736)

## Current Behavior

When deciding whether a task can be scheduled, `TasksSchedule` checked
`task.parallelism === true` in two places:

- `canBeScheduled` — gating a task against already-running parallel
tasks
- `canBatchTaskBeScheduled` — gating a task for batch scheduling

A task whose `parallelism` is `undefined` failed both checks and was
blocked, even though `undefined` is meant to mean "parallel". This was
also inconsistent with the running-tasks check, which uses `parallelism
=== false` — treating `undefined` as parallel-capable.

## Expected Behavior

A task with `parallelism === undefined` is treated as parallel in both
the regular and batch scheduling checks. Both now use `parallelism !==
false`, matching the convention used elsewhere and the documented
default.

## Related Issue(s)

N/A

(cherry picked from commit 05c5589)
polygraph-snapshot-app Bot pushed a commit that referenced this pull request May 20, 2026
…ng (#35736)

## Current Behavior

When deciding whether a task can be scheduled, `TasksSchedule` checked
`task.parallelism === true` in two places:

- `canBeScheduled` — gating a task against already-running parallel
tasks
- `canBatchTaskBeScheduled` — gating a task for batch scheduling

A task whose `parallelism` is `undefined` failed both checks and was
blocked, even though `undefined` is meant to mean "parallel". This was
also inconsistent with the running-tasks check, which uses `parallelism
=== false` — treating `undefined` as parallel-capable.

## Expected Behavior

A task with `parallelism === undefined` is treated as parallel in both
the regular and batch scheduling checks. Both now use `parallelism !==
false`, matching the convention used elsewhere and the documented
default.

## Related Issue(s)

N/A
vrxj81 pushed a commit to vrxj81/nx that referenced this pull request May 20, 2026
…ng (nrwl#35736)

## Current Behavior

When deciding whether a task can be scheduled, `TasksSchedule` checked
`task.parallelism === true` in two places:

- `canBeScheduled` — gating a task against already-running parallel
tasks
- `canBatchTaskBeScheduled` — gating a task for batch scheduling

A task whose `parallelism` is `undefined` failed both checks and was
blocked, even though `undefined` is meant to mean "parallel". This was
also inconsistent with the running-tasks check, which uses `parallelism
=== false` — treating `undefined` as parallel-capable.

## Expected Behavior

A task with `parallelism === undefined` is treated as parallel in both
the regular and batch scheduling checks. Both now use `parallelism !==
false`, matching the convention used elsewhere and the documented
default.

## Related Issue(s)

N/A
@github-actions

Copy link
Copy Markdown
Contributor

This pull request has already been merged/closed. If you experience issues related to these changes, please open a new issue referencing this pull request.

@github-actions github-actions Bot locked as resolved and limited conversation to collaborators May 25, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants