Skip to content

Prototype: configure workflow with component init args - #343

Draft
reeceyang wants to merge 1 commit into
mainfrom
reece/component-init-prototype
Draft

reeceyang wants to merge 1 commit into
mainfrom
reece/component-init-prototype

Conversation

@reeceyang

@reeceyang reeceyang commented Nov 20, 2026 •

Copy link
Copy Markdown

Moves workflow's per-installation maxParallelism and logLevel into a component init, set with app.use(workflow, { args }), and forwards both to the child workpool with component.args.<name> so its init (convex/workpool#274) owns them. The workflow init also keeps logLevel for workflow's own logs. With per-call config gone from workpool, the maxParallelism/logLevel client options, the create mutation's maxParallelism and the utils:updateConfig mutation are removed; retry options stay on WorkflowManager. The TS lib goes to ES2022 because workpool#274's test helper now pulls workpool's source into this typecheck.

Forwarding an optional arg that the app didn't pass needs convex/convex#62122. Neither convex-test#212 nor the backend implements that omission yet, so for now an app has to pass both args. The example app and the env test do that, and the no-args test is skipped. Not meant to merge.

Builds on convex/convex#62236 (docs in convex/convex#62237), convex/convex-test#212 and convex/workpool#274.

🤖 Generated with Claude Code

@reeceyang
reeceyang force-pushed the reece/component-init-prototype branch 4 times, most recently from 4f027be to aeb47f0 Compare November 20, 2026 00:59
@reeceyang
reeceyang force-pushed the reece/component-init-prototype branch from aeb47f0 to f6b078f Compare November 20, 2026 01:01
@pkg-pr-new

pkg-pr-new Bot commented Nov 20, 2026

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/@convex-dev/workflow@343

commit: f6b078f

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.

1 participant