fifth
fifth2w ago

How long can Convex Actions be run for?

Processing test images with AI can take a lot of time, especially if you are processing multiple images at a time. How long at most can I run actions for, if I process 10 images by gpt-4o-vision for instance, and it needs a lot of time? Is there a way to up this limit? Thank you!
3 Replies
Convex Bot
Convex Bot2w ago
Thanks for posting in <#1088161997662724167>. Reminder: If you have a Convex Pro account, use the Convex Dashboard to file support tickets. - Provide context: What are you trying to achieve, what is the end-user interaction, what are you seeing? (full error message, command output, etc.) - Use search.convex.dev to search Docs, Stack, and Discord all at once. - Additionally, you can post your questions in the Convex Community's <#1228095053885476985> channel to receive a response from AI. - Avoid tagging staff unless specifically instructed. Thank you!
jamwt
jamwt2w ago
convex actions can run for 10 minutes at a time. however, if you're doing many expensive background operations, we stronly recommend you put them into a workpool with retries etc. https://www.convex.dev/components/workpool
Convex
Workpool
Workpools give critical tasks priority by organizing async operations into separate, customizable queues.
jamwt
jamwt2w ago
I'd enqueue every one of those 10 images as a separate job in the workpool and let the workpool manage it

Did you find this page helpful?