Set maxDuration: "max" in vc-config for workflow functions#1420
Set maxDuration: "max" in vc-config for workflow functions#1420TooTallNate merged 3 commits intomainfrom
maxDuration: "max" in vc-config for workflow functions#1420Conversation
🦋 Changeset detectedLatest commit: 3c22055 The changes in this PR will be included in the next version bump. This PR includes changesets to release 16 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
🧪 E2E Test Results❌ Some tests failed Summary
❌ Failed Tests🌍 Community Worlds (55 failed)mongodb (3 failed):
redis (2 failed):
turso (50 failed):
Details by Category✅ ▲ Vercel Production
✅ 💻 Local Development
✅ 📦 Local Production
✅ 🐘 Local Postgres
✅ 🪟 Windows
❌ 🌍 Community Worlds
✅ 📋 Other
|
📊 Benchmark Results
workflow with no steps💻 Local Development
▲ Production (Vercel)
🔍 Observability: Next.js (Turbopack) | Express | Nitro workflow with 1 step💻 Local Development
▲ Production (Vercel)
🔍 Observability: Express | Nitro | Next.js (Turbopack) workflow with 10 sequential steps💻 Local Development
▲ Production (Vercel)
🔍 Observability: Express | Nitro | Next.js (Turbopack) workflow with 25 sequential steps💻 Local Development
▲ Production (Vercel)
🔍 Observability: Express | Nitro | Next.js (Turbopack) workflow with 50 sequential steps💻 Local Development
▲ Production (Vercel)
🔍 Observability: Next.js (Turbopack) | Nitro | Express Promise.all with 10 concurrent steps💻 Local Development
▲ Production (Vercel)
🔍 Observability: Express | Nitro | Next.js (Turbopack) Promise.all with 25 concurrent steps💻 Local Development
▲ Production (Vercel)
🔍 Observability: Nitro | Next.js (Turbopack) | Express Promise.all with 50 concurrent steps💻 Local Development
▲ Production (Vercel)
🔍 Observability: Express | Next.js (Turbopack) | Nitro Promise.race with 10 concurrent steps💻 Local Development
▲ Production (Vercel)
🔍 Observability: Next.js (Turbopack) | Nitro | Express Promise.race with 25 concurrent steps💻 Local Development
▲ Production (Vercel)
🔍 Observability: Nitro | Next.js (Turbopack) | Express Promise.race with 50 concurrent steps💻 Local Development
▲ Production (Vercel)
🔍 Observability: Express | Nitro | Next.js (Turbopack) Stream Benchmarks (includes TTFB metrics)workflow with stream💻 Local Development
▲ Production (Vercel)
🔍 Observability: Next.js (Turbopack) | Nitro | Express SummaryFastest Framework by WorldWinner determined by most benchmark wins
Fastest World by FrameworkWinner determined by most benchmark wins
Column Definitions
Worlds:
|
There was a problem hiding this comment.
Pull request overview
Updates Vercel function configuration generation across workflow integrations to request the maximum allowed execution time for workflow-related serverless functions.
Changes:
- Add
maxDuration: "max"to Vercel Build Output API.vc-config.jsongeneration in@workflow/builders. - Include
maxDuration: "max"in the Next.js generated workflow functions config (eager + deferred builders). - Patch SvelteKit’s Vercel output
.vc-config.jsonfor flow/step functions to includemaxDuration: "max".
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| packages/sveltekit/src/index.ts | Patches Vercel output configs for workflow flow/step functions to include maxDuration: "max". |
| packages/next/src/builder-eager.ts | Adds maxDuration: "max" to generated workflow functions config for eager builder mode. |
| packages/next/src/builder-deferred.ts | Adds maxDuration: "max" to generated workflow functions config for deferred builder mode. |
| packages/builders/src/base-builder.ts | Sets maxDuration: "max" in generated .vc-config.json for Build Output API functions. |
| .changeset/max-duration-config.md | Publishes patch releases for affected packages and describes the change. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
You can also share your feedback on Copilot code review. Take the survey.
Merge main into v2-flow, incorporating: - Set maxDuration: 'max' in vc-config for workflow functions (#1420) Conflict resolution: keep V2 code (no separate step.func), add maxDuration to the combined flow.func config across all builders. Also fix: hook_completed → hook_received in onUnconsumedEvent skip logic (hook_completed is not a valid event type). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Summary
maxDurationto the generated.vc-config.jsonfor workflow serverless functions.maxDuration: "max"— allows execution for the maximum duration permitted by the user's plan.maxDuration: 60— 60 seconds, since the orchestrator is lightweight and doesn't need extended execution time.maxDuration— relies on the team's plan default setting.@workflow/builders), Next.js integration (@workflow/nexteager + deferred builders), and SvelteKit integration (@workflow/sveltekit).