Skip to content

Set maxDuration: "max" in vc-config for workflow functions#1420

Merged
TooTallNate merged 3 commits intomainfrom
nrajlich/max-duration-config
Mar 17, 2026
Merged

Set maxDuration: "max" in vc-config for workflow functions#1420
TooTallNate merged 3 commits intomainfrom
nrajlich/max-duration-config

Conversation

@TooTallNate
Copy link
Member

@TooTallNate TooTallNate commented Mar 17, 2026

Summary

  • Adds maxDuration to the generated .vc-config.json for workflow serverless functions.
    • Step route: maxDuration: "max" — allows execution for the maximum duration permitted by the user's plan.
    • Flow (workflow orchestrator) route: maxDuration: 60 — 60 seconds, since the orchestrator is lightweight and doesn't need extended execution time.
    • Webhook route: No explicit maxDuration — relies on the team's plan default setting.
  • Applied across all integration points: core builders (@workflow/builders), Next.js integration (@workflow/next eager + deferred builders), and SvelteKit integration (@workflow/sveltekit).
Screenshot 2026-03-17 at 12 20 41 PM

@TooTallNate TooTallNate requested review from a team and ijjk as code owners March 17, 2026 17:40
Copilot AI review requested due to automatic review settings March 17, 2026 17:40
@vercel
Copy link
Contributor

vercel bot commented Mar 17, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
example-nextjs-workflow-turbopack Ready Ready Preview, Comment Mar 17, 2026 6:32pm
example-nextjs-workflow-webpack Ready Ready Preview, Comment Mar 17, 2026 6:32pm
example-workflow Ready Ready Preview, Comment Mar 17, 2026 6:32pm
workbench-astro-workflow Ready Ready Preview, Comment Mar 17, 2026 6:32pm
workbench-express-workflow Ready Ready Preview, Comment Mar 17, 2026 6:32pm
workbench-fastify-workflow Ready Ready Preview, Comment Mar 17, 2026 6:32pm
workbench-hono-workflow Ready Ready Preview, Comment Mar 17, 2026 6:32pm
workbench-nitro-workflow Ready Ready Preview, Comment Mar 17, 2026 6:32pm
workbench-nuxt-workflow Ready Ready Preview, Comment Mar 17, 2026 6:32pm
workbench-sveltekit-workflow Ready Ready Preview, Comment Mar 17, 2026 6:32pm
workbench-vite-workflow Ready Ready Preview, Comment Mar 17, 2026 6:32pm
workflow-docs Ready Ready Preview, Comment, Open in v0 Mar 17, 2026 6:32pm
workflow-nest Ready Ready Preview, Comment Mar 17, 2026 6:32pm
workflow-swc-playground Ready Ready Preview, Comment Mar 17, 2026 6:32pm

@changeset-bot
Copy link

changeset-bot bot commented Mar 17, 2026

🦋 Changeset detected

Latest commit: 3c22055

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 16 packages
Name Type
@workflow/builders Patch
@workflow/next Patch
@workflow/sveltekit Patch
@workflow/astro Patch
@workflow/cli Patch
@workflow/nest Patch
@workflow/nitro Patch
@workflow/rollup Patch
@workflow/vite Patch
@workflow/vitest Patch
workflow Patch
@workflow/world-testing Patch
@workflow/nuxt Patch
@workflow/ai Patch
@workflow/core Patch
@workflow/web-shared Patch

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

@github-actions
Copy link
Contributor

github-actions bot commented Mar 17, 2026

🧪 E2E Test Results

Some tests failed

Summary

Passed Failed Skipped Total
✅ ▲ Vercel Production 747 0 67 814
✅ 💻 Local Development 770 0 118 888
✅ 📦 Local Production 770 0 118 888
✅ 🐘 Local Postgres 770 0 118 888
✅ 🪟 Windows 71 0 3 74
❌ 🌍 Community Worlds 116 55 15 186
✅ 📋 Other 195 0 27 222
Total 3439 55 466 3960

❌ Failed Tests

🌍 Community Worlds (55 failed)

mongodb (3 failed):

  • hookWorkflow is not resumable via public webhook endpoint
  • webhookWorkflow
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously

redis (2 failed):

  • hookWorkflow is not resumable via public webhook endpoint
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously

turso (50 failed):

  • addTenWorkflow
  • addTenWorkflow
  • wellKnownAgentWorkflow (.well-known/agent)
  • should work with react rendering in step
  • promiseAllWorkflow
  • promiseRaceWorkflow
  • promiseAnyWorkflow
  • importedStepOnlyWorkflow
  • hookWorkflow
  • hookWorkflow is not resumable via public webhook endpoint
  • webhookWorkflow
  • sleepingWorkflow
  • parallelSleepWorkflow
  • nullByteWorkflow
  • workflowAndStepMetadataWorkflow
  • fetchWorkflow
  • promiseRaceStressTestWorkflow
  • error handling error propagation workflow errors nested function calls preserve message and stack trace
  • error handling error propagation workflow errors cross-file imports preserve message and stack trace
  • error handling error propagation step errors basic step error preserves message and stack trace
  • error handling error propagation step errors cross-file step error preserves message and function names in stack
  • error handling retry behavior regular Error retries until success
  • error handling retry behavior FatalError fails immediately without retries
  • error handling retry behavior RetryableError respects custom retryAfter delay
  • error handling retry behavior maxRetries=0 disables retries
  • error handling catchability FatalError can be caught and detected with FatalError.is()
  • hookCleanupTestWorkflow - hook token reuse after workflow completion
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously
  • hookDisposeTestWorkflow - hook token reuse after explicit disposal while workflow still running
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars)
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument
  • closureVariableWorkflow - nested step functions with closure variables
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step
  • health check (queue-based) - workflow and step endpoints respond to health check messages
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly
  • Calculator.calculate - static workflow method using static step methods from another class
  • AllInOneService.processNumber - static workflow method using sibling static step methods
  • ChainableService.processWithThis - static step methods using this to reference the class
  • thisSerializationWorkflow - step function invoked with .call() and .apply()
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE
  • instanceMethodStepWorkflow - instance methods with "use step" directive
  • crossContextSerdeWorkflow - classes defined in step code are deserializable in workflow context
  • stepFunctionAsStartArgWorkflow - step function reference passed as start() argument
  • cancelRun - cancelling a running workflow
  • cancelRun via CLI - cancelling a running workflow
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router
  • hookWithSleepWorkflow - hook payloads delivered correctly with concurrent sleep
  • sleepWithSequentialStepsWorkflow - sequential steps work with concurrent sleep (control)

Details by Category

✅ ▲ Vercel Production
App Passed Failed Skipped
✅ astro 67 0 7
✅ example 67 0 7
✅ express 67 0 7
✅ fastify 67 0 7
✅ hono 67 0 7
✅ nextjs-turbopack 72 0 2
✅ nextjs-webpack 72 0 2
✅ nitro 67 0 7
✅ nuxt 67 0 7
✅ sveltekit 67 0 7
✅ vite 67 0 7
✅ 💻 Local Development
App Passed Failed Skipped
✅ astro-stable 65 0 9
✅ express-stable 65 0 9
✅ fastify-stable 65 0 9
✅ hono-stable 65 0 9
✅ nextjs-turbopack-canary 54 0 20
✅ nextjs-turbopack-stable 71 0 3
✅ nextjs-webpack-canary 54 0 20
✅ nextjs-webpack-stable 71 0 3
✅ nitro-stable 65 0 9
✅ nuxt-stable 65 0 9
✅ sveltekit-stable 65 0 9
✅ vite-stable 65 0 9
✅ 📦 Local Production
App Passed Failed Skipped
✅ astro-stable 65 0 9
✅ express-stable 65 0 9
✅ fastify-stable 65 0 9
✅ hono-stable 65 0 9
✅ nextjs-turbopack-canary 54 0 20
✅ nextjs-turbopack-stable 71 0 3
✅ nextjs-webpack-canary 54 0 20
✅ nextjs-webpack-stable 71 0 3
✅ nitro-stable 65 0 9
✅ nuxt-stable 65 0 9
✅ sveltekit-stable 65 0 9
✅ vite-stable 65 0 9
✅ 🐘 Local Postgres
App Passed Failed Skipped
✅ astro-stable 65 0 9
✅ express-stable 65 0 9
✅ fastify-stable 65 0 9
✅ hono-stable 65 0 9
✅ nextjs-turbopack-canary 54 0 20
✅ nextjs-turbopack-stable 71 0 3
✅ nextjs-webpack-canary 54 0 20
✅ nextjs-webpack-stable 71 0 3
✅ nitro-stable 65 0 9
✅ nuxt-stable 65 0 9
✅ sveltekit-stable 65 0 9
✅ vite-stable 65 0 9
✅ 🪟 Windows
App Passed Failed Skipped
✅ nextjs-turbopack 71 0 3
❌ 🌍 Community Worlds
App Passed Failed Skipped
✅ mongodb-dev 3 0 2
❌ mongodb 51 3 3
✅ redis-dev 3 0 2
❌ redis 52 2 3
✅ turso-dev 3 0 2
❌ turso 4 50 3
✅ 📋 Other
App Passed Failed Skipped
✅ e2e-local-dev-nest-stable 65 0 9
✅ e2e-local-postgres-nest-stable 65 0 9
✅ e2e-local-prod-nest-stable 65 0 9

📋 View full workflow run

@github-actions
Copy link
Contributor

github-actions bot commented Mar 17, 2026

📊 Benchmark Results

📈 Comparing against baseline from main branch. Green 🟢 = faster, Red 🔺 = slower.

workflow with no steps

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
💻 Local 🥇 Express 0.043s (+1.2%) 1.005s (~) 0.962s 10 1.00x
💻 Local Nitro 0.046s (+21.3% 🔺) 1.005s (~) 0.959s 10 1.07x
💻 Local Next.js (Turbopack) 0.049s (+14.8% 🔺) 1.005s (~) 0.956s 10 1.13x
🌐 Redis Next.js (Turbopack) 0.056s (+5.2% 🔺) 1.005s (~) 0.949s 10 1.30x
🐘 Postgres Nitro 0.061s (-4.5%) 1.011s (~) 0.950s 10 1.41x
🐘 Postgres Next.js (Turbopack) 0.062s 1.011s 0.950s 10 1.43x
🐘 Postgres Express 0.063s (-4.1%) 1.012s (~) 0.949s 10 1.45x
🌐 MongoDB Next.js (Turbopack) 0.113s (+14.7% 🔺) 1.007s (~) 0.895s 10 2.61x

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Next.js (Turbopack) 0.442s (-18.2% 🟢) 2.098s (-8.9% 🟢) 1.656s 10 1.00x
▲ Vercel Express 0.464s (-7.8% 🟢) 2.489s (-0.7%) 2.025s 10 1.05x
▲ Vercel Nitro 0.511s (+6.8% 🔺) 2.182s (-9.5% 🟢) 1.671s 10 1.16x

🔍 Observability: Next.js (Turbopack) | Express | Nitro

workflow with 1 step

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
💻 Local 🥇 Next.js (Turbopack) 1.119s (+1.7%) 2.005s (~) 0.886s 10 1.00x
💻 Local Nitro 1.129s (+2.6%) 2.005s (~) 0.876s 10 1.01x
🌐 Redis Next.js (Turbopack) 1.129s (+1.1%) 2.006s (~) 0.877s 10 1.01x
💻 Local Express 1.132s (~) 2.005s (~) 0.873s 10 1.01x
🐘 Postgres Express 1.144s (-0.9%) 2.012s (~) 0.867s 10 1.02x
🐘 Postgres Nitro 1.146s (~) 2.013s (~) 0.866s 10 1.02x
🐘 Postgres Next.js (Turbopack) 1.155s 2.013s 0.858s 10 1.03x
🌐 MongoDB Next.js (Turbopack) 1.319s (~) 2.009s (~) 0.690s 10 1.18x

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Express 2.082s (-2.3%) 3.677s (~) 1.595s 10 1.00x
▲ Vercel Nitro 2.168s (+3.2%) 3.715s (+0.8%) 1.547s 10 1.04x
▲ Vercel Next.js (Turbopack) 2.465s (+14.4% 🔺) 3.685s (~) 1.220s 10 1.18x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

workflow with 10 sequential steps

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
🌐 Redis 🥇 Next.js (Turbopack) 10.769s (~) 11.023s (~) 0.253s 3 1.00x
💻 Local Next.js (Turbopack) 10.805s (+1.6%) 11.025s (~) 0.220s 3 1.00x
🐘 Postgres Express 10.881s (~) 11.035s (~) 0.154s 3 1.01x
💻 Local Express 10.893s (~) 11.023s (~) 0.130s 3 1.01x
💻 Local Nitro 10.905s (+2.5%) 11.023s (~) 0.118s 3 1.01x
🐘 Postgres Next.js (Turbopack) 10.930s 11.373s 0.443s 3 1.01x
🐘 Postgres Nitro 10.952s (~) 11.038s (~) 0.085s 3 1.02x
🌐 MongoDB Next.js (Turbopack) 12.320s (~) 13.025s (~) 0.705s 3 1.14x

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Express 16.878s (-2.9%) 18.647s (-1.4%) 1.770s 2 1.00x
▲ Vercel Nitro 17.729s (+7.0% 🔺) 19.266s (+5.2% 🔺) 1.537s 2 1.05x
▲ Vercel Next.js (Turbopack) 19.224s (+12.3% 🔺) 20.755s (+11.4% 🔺) 1.531s 2 1.14x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

workflow with 25 sequential steps

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
🌐 Redis 🥇 Next.js (Turbopack) 26.771s (~) 27.052s (~) 0.281s 3 1.00x
🐘 Postgres Next.js (Turbopack) 26.997s 27.058s 0.061s 3 1.01x
💻 Local Next.js (Turbopack) 27.119s (+1.6%) 28.053s (+3.7%) 0.934s 3 1.01x
🐘 Postgres Express 27.169s (~) 28.060s (~) 0.891s 3 1.01x
🐘 Postgres Nitro 27.286s (~) 28.059s (~) 0.774s 3 1.02x
💻 Local Express 27.454s (~) 28.050s (~) 0.596s 3 1.03x
💻 Local Nitro 27.517s (+2.9%) 28.054s (+3.7%) 0.537s 3 1.03x
🌐 MongoDB Next.js (Turbopack) 30.480s (-0.6%) 31.041s (~) 0.562s 2 1.14x

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Express 44.480s (-1.8%) 46.750s (~) 2.270s 2 1.00x
▲ Vercel Nitro 44.529s (-3.4%) 46.448s (-3.7%) 1.919s 2 1.00x
▲ Vercel Next.js (Turbopack) 47.690s (+5.1% 🔺) 49.210s (+5.4% 🔺) 1.521s 2 1.07x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

workflow with 50 sequential steps

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
🌐 Redis 🥇 Next.js (Turbopack) 53.440s (~) 54.097s (~) 0.657s 2 1.00x
🐘 Postgres Next.js (Turbopack) 54.083s 54.607s 0.525s 2 1.01x
🐘 Postgres Express 54.236s (~) 55.095s (~) 0.860s 2 1.01x
🐘 Postgres Nitro 54.328s (~) 55.092s (~) 0.765s 2 1.02x
💻 Local Next.js (Turbopack) 55.873s (+1.8%) 56.103s (+1.8%) 0.230s 2 1.05x
💻 Local Express 56.452s (~) 57.100s (~) 0.648s 2 1.06x
💻 Local Nitro 56.618s (+3.0%) 57.105s (+3.6%) 0.486s 2 1.06x
🌐 MongoDB Next.js (Turbopack) 60.900s (~) 61.078s (~) 0.178s 2 1.14x

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Next.js (Turbopack) 94.341s (-14.4% 🟢) 95.810s (-14.5% 🟢) 1.469s 1 1.00x
▲ Vercel Nitro 95.154s (-10.0% 🟢) 96.553s (-9.9% 🟢) 1.399s 1 1.01x
▲ Vercel Express 96.050s (-7.1% 🟢) 98.245s (-6.9% 🟢) 2.195s 1 1.02x

🔍 Observability: Next.js (Turbopack) | Nitro | Express

Promise.all with 10 concurrent steps

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
🐘 Postgres 🥇 Next.js (Turbopack) 1.269s 2.011s 0.742s 15 1.00x
🐘 Postgres Express 1.274s (-1.7%) 2.011s (~) 0.737s 15 1.00x
🐘 Postgres Nitro 1.304s (+2.8%) 2.011s (~) 0.708s 15 1.03x
🌐 Redis Next.js (Turbopack) 1.372s (~) 2.006s (~) 0.635s 15 1.08x
💻 Local Next.js (Turbopack) 1.509s (+3.6%) 2.006s (~) 0.497s 15 1.19x
💻 Local Nitro 1.524s (+5.6% 🔺) 2.006s (~) 0.482s 15 1.20x
💻 Local Express 1.530s (+1.5%) 2.006s (~) 0.476s 15 1.21x
🌐 MongoDB Next.js (Turbopack) 2.159s (~) 3.008s (~) 0.850s 10 1.70x

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Express 2.200s (-13.7% 🟢) 3.670s (-4.8%) 1.470s 9 1.00x
▲ Vercel Nitro 2.392s (-8.9% 🟢) 3.667s (-10.6% 🟢) 1.275s 9 1.09x
▲ Vercel Next.js (Turbopack) 2.494s (-21.7% 🟢) 3.561s (-19.6% 🟢) 1.067s 9 1.13x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

Promise.all with 25 concurrent steps

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
🐘 Postgres 🥇 Nitro 2.460s (~) 3.011s (~) 0.551s 10 1.00x
🐘 Postgres Express 2.471s (~) 3.011s (~) 0.541s 10 1.00x
🐘 Postgres Next.js (Turbopack) 2.479s 3.013s 0.534s 10 1.01x
🌐 Redis Next.js (Turbopack) 2.588s (+1.1%) 3.008s (~) 0.420s 10 1.05x
💻 Local Next.js (Turbopack) 2.689s (+1.0%) 3.008s (-3.2%) 0.319s 10 1.09x
💻 Local Express 2.872s (~) 3.108s (+3.3%) 0.236s 10 1.17x
💻 Local Nitro 2.931s (+15.0% 🔺) 3.341s (+11.1% 🔺) 0.410s 9 1.19x
🌐 MongoDB Next.js (Turbopack) 4.645s (-2.6%) 5.177s (~) 0.533s 6 1.89x

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Nitro 2.347s (-10.8% 🟢) 3.646s (-10.8% 🟢) 1.299s 9 1.00x
▲ Vercel Next.js (Turbopack) 2.466s (-9.1% 🟢) 3.525s (-13.6% 🟢) 1.059s 9 1.05x
▲ Vercel Express 2.706s (-2.1%) 4.081s (-2.5%) 1.376s 8 1.15x

🔍 Observability: Nitro | Next.js (Turbopack) | Express

Promise.all with 50 concurrent steps

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
🐘 Postgres 🥇 Express 3.590s (~) 4.014s (~) 0.424s 8 1.00x
🐘 Postgres Nitro 3.617s (+0.9%) 4.014s (~) 0.397s 8 1.01x
🐘 Postgres Next.js (Turbopack) 3.781s 4.014s 0.233s 8 1.05x
🌐 Redis Next.js (Turbopack) 4.217s (+3.0%) 4.868s (~) 0.651s 7 1.17x
💻 Local Next.js (Turbopack) 7.429s (+24.7% 🔺) 7.769s (+17.4% 🔺) 0.340s 4 2.07x
💻 Local Express 8.053s (+1.1%) 8.770s (+6.0% 🔺) 0.717s 4 2.24x
💻 Local Nitro 8.378s (+23.8% 🔺) 9.020s (+25.0% 🔺) 0.642s 4 2.33x
🌐 MongoDB Next.js (Turbopack) 10.070s (-0.6%) 10.351s (-3.1%) 0.281s 3 2.80x

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Express 2.878s (+2.2%) 4.411s (+6.7% 🔺) 1.532s 7 1.00x
▲ Vercel Next.js (Turbopack) 3.139s (-7.6% 🟢) 4.429s (-8.6% 🟢) 1.290s 7 1.09x
▲ Vercel Nitro 3.166s (+8.6% 🔺) 4.558s (+7.0% 🔺) 1.392s 7 1.10x

🔍 Observability: Express | Next.js (Turbopack) | Nitro

Promise.race with 10 concurrent steps

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
🐘 Postgres 🥇 Next.js (Turbopack) 1.263s 2.011s 0.748s 15 1.00x
🐘 Postgres Nitro 1.273s (+0.6%) 2.010s (~) 0.737s 15 1.01x
🐘 Postgres Express 1.276s (~) 2.011s (~) 0.734s 15 1.01x
🌐 Redis Next.js (Turbopack) 1.279s (-3.8%) 2.006s (~) 0.727s 15 1.01x
💻 Local Next.js (Turbopack) 1.497s (+0.5%) 2.006s (~) 0.509s 15 1.18x
💻 Local Express 1.512s (-0.7%) 2.005s (~) 0.492s 15 1.20x
💻 Local Nitro 1.545s (+7.0% 🔺) 2.006s (~) 0.461s 15 1.22x
🌐 MongoDB Next.js (Turbopack) 2.215s (+3.1%) 3.008s (~) 0.794s 10 1.75x

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Next.js (Turbopack) 2.112s (-20.1% 🟢) 3.373s (-17.0% 🟢) 1.261s 9 1.00x
▲ Vercel Nitro 2.157s (-8.0% 🟢) 3.627s (-6.1% 🟢) 1.469s 9 1.02x
▲ Vercel Express 2.280s (-5.7% 🟢) 3.865s (-1.0%) 1.585s 8 1.08x

🔍 Observability: Next.js (Turbopack) | Nitro | Express

Promise.race with 25 concurrent steps

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
🐘 Postgres 🥇 Nitro 2.440s (-0.5%) 3.012s (~) 0.571s 10 1.00x
🐘 Postgres Express 2.451s (~) 3.012s (~) 0.561s 10 1.00x
🐘 Postgres Next.js (Turbopack) 2.463s 3.012s 0.549s 10 1.01x
🌐 Redis Next.js (Turbopack) 2.558s (+0.8%) 3.008s (~) 0.450s 10 1.05x
💻 Local Next.js (Turbopack) 2.740s (+4.4%) 3.109s (+3.3%) 0.368s 10 1.12x
💻 Local Nitro 2.944s (+13.0% 🔺) 3.565s (+18.5% 🔺) 0.621s 9 1.21x
💻 Local Express 3.120s (+4.7%) 3.760s (+13.6% 🔺) 0.639s 8 1.28x
🌐 MongoDB Next.js (Turbopack) 4.657s (-2.4%) 5.177s (~) 0.520s 6 1.91x

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Nitro 2.704s (-10.3% 🟢) 4.120s (-6.8% 🟢) 1.416s 8 1.00x
▲ Vercel Next.js (Turbopack) 2.848s (-2.4%) 3.911s (-9.7% 🟢) 1.063s 8 1.05x
▲ Vercel Express 3.724s (+31.7% 🔺) 5.154s (+25.8% 🔺) 1.430s 6 1.38x

🔍 Observability: Nitro | Next.js (Turbopack) | Express

Promise.race with 50 concurrent steps

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
🐘 Postgres 🥇 Express 3.597s (~) 4.014s (~) 0.417s 8 1.00x
🐘 Postgres Nitro 3.602s (~) 4.014s (~) 0.412s 8 1.00x
🐘 Postgres Next.js (Turbopack) 3.773s 4.014s 0.241s 8 1.05x
🌐 Redis Next.js (Turbopack) 4.157s (+2.5%) 4.869s (+3.0%) 0.712s 7 1.16x
💻 Local Next.js (Turbopack) 7.205s (+10.8% 🔺) 7.518s (+7.2% 🔺) 0.313s 4 2.00x
💻 Local Express 8.629s (-6.4% 🟢) 9.022s (-7.7% 🟢) 0.393s 4 2.40x
💻 Local Nitro 8.652s (+20.7% 🔺) 9.022s (+12.6% 🔺) 0.370s 4 2.41x
🌐 MongoDB Next.js (Turbopack) 9.824s (-3.6%) 10.348s (-3.2%) 0.524s 3 2.73x

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Express 2.670s (-37.5% 🟢) 3.959s (-27.0% 🟢) 1.289s 8 1.00x
▲ Vercel Nitro 2.734s (-23.0% 🟢) 4.259s (-17.3% 🟢) 1.525s 8 1.02x
▲ Vercel Next.js (Turbopack) 3.506s (-16.4% 🟢) 5.107s (-8.5% 🟢) 1.601s 6 1.31x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

Stream Benchmarks (includes TTFB metrics)
workflow with stream

💻 Local Development

World Framework Workflow Time TTFB Slurp Wall Time Overhead Samples vs Fastest
💻 Local 🥇 Next.js (Turbopack) 0.173s (+30.5% 🔺) 1.002s (~) 0.011s (+8.2% 🔺) 1.016s (~) 0.844s 10 1.00x
🌐 Redis Next.js (Turbopack) 0.175s (+2.2%) 1.000s (~) 0.002s (~) 1.008s (~) 0.832s 10 1.02x
💻 Local Express 0.195s (-3.0%) 1.003s (~) 0.011s (-3.5%) 1.017s (~) 0.822s 10 1.13x
💻 Local Nitro 0.197s (+37.8% 🔺) 1.003s (~) 0.012s (+30.8% 🔺) 1.018s (~) 0.821s 10 1.14x
🐘 Postgres Next.js (Turbopack) 0.201s 1.001s 0.002s 1.012s 0.811s 10 1.16x
🐘 Postgres Express 0.215s (-1.9%) 0.990s (-0.9%) 0.002s (+18.7% 🔺) 1.014s (~) 0.798s 10 1.25x
🐘 Postgres Nitro 0.219s (~) 0.994s (~) 0.001s (-7.1% 🟢) 1.013s (~) 0.795s 10 1.27x
🌐 MongoDB Next.js (Turbopack) 0.520s (+4.3%) 0.932s (-2.4%) 0.002s (+25.0% 🔺) 1.009s (~) 0.489s 10 3.02x

▲ Production (Vercel)

World Framework Workflow Time TTFB Slurp Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Next.js (Turbopack) 1.569s (-13.2% 🟢) 2.304s (-20.8% 🟢) 0.005s (-1.8%) 2.796s (-19.5% 🟢) 1.227s 10 1.00x
▲ Vercel Nitro 1.664s (-1.4%) 2.656s (~) 0.005s (+12.8% 🔺) 3.338s (+2.2%) 1.674s 10 1.06x
▲ Vercel Express 1.692s (+1.3%) 2.370s (-7.6% 🟢) 0.005s (-98.6% 🟢) 2.949s (-14.9% 🟢) 1.257s 10 1.08x

🔍 Observability: Next.js (Turbopack) | Nitro | Express

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World 🥇 Fastest Framework Wins
💻 Local Next.js (Turbopack) 11/12
🐘 Postgres Next.js (Turbopack) 5/12
▲ Vercel Express 6/12
Fastest World by Framework

Winner determined by most benchmark wins

Framework 🥇 Fastest World Wins
Express 🐘 Postgres 7/12
Next.js (Turbopack) 💻 Local 3/12
Nitro 🐘 Postgres 5/12
Column Definitions
  • Workflow Time: Runtime reported by workflow (completedAt - createdAt) - primary metric
  • TTFB: Time to First Byte - time from workflow start until first stream byte received (stream benchmarks only)
  • Slurp: Time from first byte to complete stream consumption (stream benchmarks only)
  • Wall Time: Total testbench time (trigger workflow + poll for result)
  • Overhead: Testbench overhead (Wall Time - Workflow Time)
  • Samples: Number of benchmark iterations run
  • vs Fastest: How much slower compared to the fastest configuration for this benchmark

Worlds:

  • 💻 Local: In-memory filesystem world (local development)
  • 🐘 Postgres: PostgreSQL database world (local development)
  • ▲ Vercel: Vercel production/preview deployment
  • 🌐 Turso: Community world (local development)
  • 🌐 MongoDB: Community world (local development)
  • 🌐 Redis: Community world (local development)
  • 🌐 Jazz: Community world (local development)

📋 View full workflow run

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

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.json generation in @workflow/builders.
  • Include maxDuration: "max" in the Next.js generated workflow functions config (eager + deferred builders).
  • Patch SvelteKit’s Vercel output .vc-config.json for flow/step functions to include maxDuration: "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.

@TooTallNate TooTallNate merged commit 3cc2943 into main Mar 17, 2026
165 of 169 checks passed
@TooTallNate TooTallNate deleted the nrajlich/max-duration-config branch March 17, 2026 21:08
VaguelySerious added a commit that referenced this pull request Mar 17, 2026
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>
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.

3 participants