vercel / vercel/workflow

Workflow steps don't receive extended max duration — "maxDuration": "max" resolves to 800s, not the plan's 1800s (beta)

Open
#2,952 2 comments 1 reaction 1 assignee View on GitHub

@elliotdauber is already working on this.

Since Jul 15, 2026.

Dominant language
TypeScript
Stars
2.4k
Forks
365
Avg merge
2d 11h
Merged PRs (30d)
169

Description

Extended max duration (Pro, beta) works for regular Next.js App Router functions on our team but never reaches Workflow DevKit step functions, which stay hard-capped at 800s.

Per-function opt-in is impossible for steps:

  • The step route (app/.well-known/workflow/v1/step/route.js) is generated by @workflow/next and exports only HEAD/POST — no user-owned file for export const maxDuration.
  • Placing the export in a "use workflow" source file fails the build: SWC transform error: Only async functions can be exported from a "use workflow" file.
  • @workflow/next 4.1.0 and 5.0.0-beta.34 both emit no maxDuration and expose no option; the generated manifest declares "maxDuration": "max".

Measurements (same project, same deployment, 2026-07-15 — full repro with code in the gist below):

Test Result
Owned App Router route, in-file maxDuration = 1800, 900s hold completes — the beta is active for the team
Workflow step, 350s hold completes
Workflow step, 900s hold killed at ~800s and queue-redelivered indefinitely

Environment: Vercel Pro, Fluid Compute on, Node 22.x, no Secure Compute/Static IPs, workflow 4.6.0. Repro (two files + build log + run/deployment IDs): https://gist.github.com/bwiesner/bd03e1875d70a5cb2d82750dd8968ad8

This looks like the resolution of "max" lagging the beta — per @pranaygp in #1483, "Step routes will automatically use the maximum possible maxDuration available on your vercel plan," which our plan's Control A shows should now be 1800.

Ask: resolve steps' "maxDuration": "max" to the extended maximum for eligible teams, or expose a per-step / plugin-level maxDuration option. (If the extended resolution is behind a staged rollout, confirming that would also settle it.)

Filed at the request of Vercel support (shared Slack thread with the team).

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.