Allan
Allan3w ago

action execution timeout after 10 seconds not 10 minutes.

Disclaimer: I hope I am on a wrong track. Today I am a bit puzzled I use self hosted convex and have a problem with an action that timeouts after 10 seconds. The Doc says 10 minutes: https://docs.convex.dev/production/state/limits. But the code (Rust backend code) indeed says 10 seconds! So either the documentation is wrong or the code: https://github.com/get-convex/convex-backend/blob/main/crates/isolate/src/tests/action.rs#L63 (test which expects a timeout after 10 seconds) The action which is timeouting is simple as:
export const debugLong = action(async (ctx) => {
console.log("debugLong START", new Date().toISOString());
await new Promise((resolve) => setTimeout(resolve, 12000));
console.log("debugLong END (should reach here if >10s allowed)", new Date().toISOString());
return { ok: true };
});
export const debugLong = action(async (ctx) => {
console.log("debugLong START", new Date().toISOString());
await new Promise((resolve) => setTimeout(resolve, 12000));
console.log("debugLong END (should reach here if >10s allowed)", new Date().toISOString());
return { ok: true };
});
I am in the V8 context, so no use node and would expect that this action just runs. Which is not the case and leads to
24.10.2025, 19:03:49 [CONVEX A(functions/ai:debugLong)] Function execution timed out (maximum duration: 10s)
24.10.2025, 19:03:49 [CONVEX A(functions/ai:debugLong)] Function execution timed out (maximum duration: 10s)
I hope this has something to do with wrong runtime (like node execution which should not be) and I hope 10 minutes is the limit intendend. Thanks (also for the support so far)
GitHub
convex-backend/crates/isolate/src/tests/action.rs at main · get-co...
The open-source reactive database for app developers - get-convex/convex-backend
1 Reply
Convex Bot
Convex Bot3w 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!

Did you find this page helpful?