Skip to content

Support maxConcurrency in queue consumer exports - #851

Merged
cpojer merged 2 commits into
voidzero-dev:mainfrom
karthickeyan-dev:feat/850-queue-max-concurrency
Nov 17, 2026
Merged

cpojer merged 2 commits into
voidzero-dev:mainfrom
karthickeyan-dev:feat/850-queue-max-concurrency

Conversation

@karthickeyan-dev

@karthickeyan-dev karthickeyan-dev commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

Closes #850.

Queue files can now export maxConcurrency to cap the number of batches Cloudflare processes at once. Void maps it to max_concurrency for native and framework-based direct Cloudflare deploys and for Void-managed deploys, including rollback and recovery. Values must be integer literals from 1 to 250; omitting the export preserves automatic scaling.

Adds scanner and manifest validation, regression coverage for both deployment paths and omitted settings, a commented option in void gen queue, and queue guide examples.

Void-managed deployments require platform 1.9.2 or later, so older releases cannot silently ignore the cap. Removing the export clears Void-written concurrency limits from framework deployment config and void.lock.json, while preserving manually configured limits. Regression coverage verifies rejection of older platforms and removal across repeated deployments and config regeneration.

Validation:

  • vp run test:all: formatting, lint, builds, artifact validation, typechecking, and the full suite passed; 815 test files and 17,458 tests passed (39 skipped).
  • Focused scanner, config, deployment, rollback, and recovery regressions.
  • vp run check, vp fmt --check, vp lint, and vp run lint:platform.
  • vp run --cache build:all and node test/check-playground-build-artifacts.mjs.
  • vp run build:docs.
  • vp run test --base main: 14,972 tests passed (39 skipped).

Fresh npm and pnpm packed-consumer smoke checks encountered a dependency mismatch during the Vite build: newly resolved @cloudflare/vite-plugin@2.0.0-rc.0 writes .cloudflare/output/v1, while Void's @cloudflare/build-output-utils@0.9.14 looks for .cloudflare/output/v0/config.json. The locked workspace uses 2.0.0-beta.v.15 and 0.9.13; this PR leaves dependency versions unchanged.

@cpojer cpojer left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thank you for adding this feature!

@cpojer
cpojer merged commit 0af7f33 into voidzero-dev:main Nov 17, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support maxConcurrency in queue consumer exports

2 participants