Menu

Dynamically extend timeout of an active Sandbox - Vercel
📰
0

Dynamically extend timeout of an active Sandbox - Vercel

Vercel News·Laurens Duijvesteijn·4 days ago
#HN0REnDd
Reading 0:00
15s threshold

You can now extend the duration of a running Vercel Sandbox using the new extendTimeout method.

This lets long-running sandboxes stay active beyond their initial timeout, making it easier to support workflows like chained agentic tasks or multi-step code generation that take longer than expected.

const sandbox = await Sandbox.create({

// 15 minute timeout

timeout: 15 * 60 * 1000,

});

// Extend by 10 minutes

await sandbox.extendTimeout(10 * 60 * 1000);

You can extend the timeout multiple times until the maximum runtime for your plan is reached.

Pro and Enterprise plans support up to 5 hours, with the Hobby plan supporting up to 45 minutes.

Get started with Sandbox now and learn more in the docs.

Read More