Hitting request timeout on Vercel but function is expected to be slow

I have a service running on GCP that does some really slow web crawling stuff and I keep hitting the request timeout in Vercel. The request could take potentially up to 30min. What are some patterns/tools here that I can explore?
4 Replies
Neto
Neto5w ago
Vercel functions have a low timeout Up to: 60s (free), 300s (pro), 900s (enterprise) Most likely you can’t run on vercel and wait for the timeout
Kon
Kon5w ago
I think I may use QStash by Upstash, any opinions on that?
Neto
Neto5w ago
Nah Self hosting
Jacob
Jacob5w ago
Could use backend job tools like https://trigger.dev or use webhooks
Trigger.dev | The open source background jobs framework
Create long-running jobs directly in your codebase with features like API integrations, webhooks, scheduling and delays.