Do server actions have a fixed lifetime?

I noticed when one of the pages on my site deployed on vercel which uses a number of server actions to fetch data, takes more than 10 secs to load, I run into that application client side error.
4 Replies
Josh
Josh12mo ago
"client side error" could mean quite literally anything
m$
m$12mo ago
mr tuff guy response
denv
denvOP12mo ago
Did some more research: My Use Case: I'm working on analytics dashboard and I'm pulling in data from cube cloud to populate graphs and other data visualizations. The Problem: Some Cubejs queries take a while to be resolved in my case I had a cube query taking more than 20 seconds. There's nothing much I can do about the time it takes to pull in the data. Reference: According to the vercel's docs, serverless functions need to start sending down data within 25 seconds, failure to do so results in a timeout. https://vercel.com/guides/what-can-i-do-about-vercel-serverless-functions-timing-out My Solution: Since I had no control over how long cubejs took to resolve a query and send down the data, I decided to host my next app outside vercel. That way my serverless functions weren't timedout.
How to Fix the "This Serverless Function has timed out" Error
Learn what you can do when your Serverless Functions exceed the execution limits and return a timeout error.
Want results from more Discord servers?
Add your server