ChanchanaC
Convex Community3y ago
34 replies
Chanchana

Do Convex actions have a timeout? If so, how long?

1. Does convex actions have limited timeout threshold similar to Vercel?
2. How would you implement something that requires long await time e.g. sending an API to a AI image generator that is experiencing cold start so it takes around 20 seconds?

- Would you break it into 2 steps i.e. send image generation request, then let the API call the webhook on the way back.
- Or would you just request the image generation process and await for 20 seconds inside convex action?
Was this page helpful?