Vercel Functions теперь до 30 минут: что решить перед переносом долгих AI-задач в serverless
15 июня 2026 года Vercel объявила, что Functions для Node.js и Python могут работать до 30 минут для Pro и Enterprise. Время выше 800 секунд указано как beta и требует Fluid Compute. Это полезно для долгих LLM-ответов, OCR, извлечения данных, медиа и ограниченной автоматизации.
Что изменилось
15 июня 2026 года Vercel объявила, что Functions для Node.js и Python могут работать до 30 минут для Pro и Enterprise. Время выше 800 секунд указано как beta и требует Fluid Compute. Это полезно для долгих LLM-ответов, OCR, извлечения данных, медиа и ограниченной автоматизации.
Граница проста: если пользователь ждёт результат, длинная Function со streaming может быть правильной. Если задаче нужны возобновление, retries по шагам или долгий sleep, лучше Workflow или Queue. Если нужны файлы, браузер, тесты или workspace агента, выбирайте Sandbox.
Практическое решение
| Runtime | Best fit | Watch out |
|---|---|---|
| Function | User waits, streaming matters, bounded input | Needs explicit maxDuration, cancellation, logs |
| Workflow / Queue | Retry, checkpoint, durable steps | Requires idempotency and state design |
| Sandbox | Browser, filesystem, tests, agent workspace | Needs permission and cleanup rules |
• Verify plan, runtime, beta availability and Fluid Compute settings.
• Keep provider and database timeouts below the function maximum.
• Add progress logs, correlation ids, cancellation and cost alerts.
• Use idempotency keys before moving mutations into longer requests.
Риски
Перед продакшеном проверьте plan, runtime, beta-доступ, maxDuration, таймауты провайдеров и БД, прогресс-логи, отмену, rate limits и алерты по стоимости. Длинный timeout не заменяет durable state machine.
Community discussions around Vercel timeouts show that developers have long been balancing streaming, queues and separate workers for LLM and long API work. Treat those discussions as product signal, while relying on the official Vercel changelog and docs for the actual limits.
Источники
- Vercel Changelog: Functions can now run up to 30 minutes
- Vercel Docs: Configuring Maximum Duration
- Vercel Docs: Fluid Compute
- Vercel Docs: Functions usage and pricing
- Vercel Changelog: Workflow SDK supports TanStack Start
- Vercel Changelog: Sandbox can run up to 24 hours
- Reddit: long-running task questions on Vercel
- Reddit: Vercel runtime limit discussion for LLM apps