Skip to content

fix(runtime): Derive deadlines from Nitro max duration#1029

Merged
dcramer merged 2 commits into
mainfrom
fix/1027-nitro-runtime-budget
Jul 23, 2026
Merged

fix(runtime): Derive deadlines from Nitro max duration#1029
dcramer merged 2 commits into
mainfrom
fix/1027-nitro-runtime-budget

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

Make juniorNitro({ maxDuration }) authoritative for both Vercel function configuration and Junior runtime execution budgets. The generated runtime config now drives the agent deadline, conversation soft-yield window, and queue visibility timeout without duplicate environment variables.

Execution buffers

Agent work stops 20 seconds before the host timeout, conversation work soft-yields 40 seconds before it, and queue visibility remains 30 seconds beyond it. A lower AGENT_TURN_TIMEOUT_MS still shortens the agent budget.

Configuration cleanup

Remove FUNCTION_MAX_DURATION_SECONDS and QUEUE_CALLBACK_MAX_DURATION_SECONDS from runtime configuration and examples, while preserving the 300-second default when maxDuration is omitted.

Fixes #1027

Requested by David Cramer via Junior.

--

View Junior Session

Co-Authored-By: David Cramer <david@sentry.io>
@vercel

vercel Bot commented Jul 23, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
junior-docs Ready Ready Preview Jul 23, 2026 11:12pm

Request Review

Co-Authored-By: David Cramer <david@sentry.io>
@dcramer
dcramer marked this pull request as ready for review July 23, 2026 23:43
@github-actions github-actions Bot added the risk: high PR risk score: high label Jul 23, 2026
@dcramer
dcramer merged commit ca7553d into main Jul 23, 2026
36 checks passed
@dcramer
dcramer deleted the fix/1027-nitro-runtime-budget branch July 23, 2026 23:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

risk: high PR risk score: high

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Derive runtime deadlines from Nitro maxDuration

1 participant