Why is waitUntil not working in my Vercel serverless function?

Hi everyone,

I’m trying to execute a series of asynchronous tasks in a Vercel serverless function using waitUntil. However, it doesn’t seem to work as expected, and my function times out with the following
error: Vercel Runtime Timeout Error: Task timed out after 15 seconds

It sounds like you might be hitting the default max duration for a serverless function. Have you tried increasing it? Configuring Maximum Duration for Vercel Functions

1 Like

Thanks for jumping in here, @dev-adclear! Definitely extra points for the leaderboard if you’re interested :smiley:

@johnson-8844 Let us know how you get on!