Increase execution duration T3 w/ TRPC
How do I increase the execution limit so it doesn't time out at 10 seconds. I am using TRPC and the export maxDuration does not change it
![No description](https://cdn.answeroverflow.com/1222581899726291065/image.png)
8 Replies
pay vercel
Solution![No description](https://cdn.answeroverflow.com/1222582437054513212/Screenshot_2024-03-27_at_13.26.02.png)
![No description](https://cdn.answeroverflow.com/1222582437054513212/Screenshot_2024-03-27_at_13.26.02.png)
ah I see
thanks!
wait I need a registered business to pay in Canada? 🗿
no idea
vercel baby
I'm still getting the error after transferring the project, this doesn't even make any sense why it's 15 but it still stops at 10
![No description](https://cdn.answeroverflow.com/1222745509031055380/image.png)
nvm I solved it, export const maxDuration needs to be in [trpc].ts
If you have a lot of long running things you should consider doing those outside of vercel. Something like sqs if it’s jobs of this kind maybe a good bet. https://aws.amazon.com/sqs/
Amazon Web Services, Inc.
Message Queuing Service - Amazon Simple Queue Service - AWS
Amazon SQS fully managed message queuing makes it easy to decouple
and scale microservices, distributed systems, and serverless applications.
yeah if it scales after initial customer testing I'll look into it, thanks
aws is too much for our needs currently