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
Neto6mo 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
KonOP6mo ago
I think I may use QStash by Upstash, any opinions on that?
Neto
Neto6mo ago
Nah Self hosting
Jacob
Jacob6mo 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.
Want results from more Discord servers?
Add your server