AllanA
Convex Community3mo ago
1 reply
Allan

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 };
});

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)


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
The open-source reactive database for app developers - get-convex/convex-backend
convex-backend/crates/isolate/src/tests/action.rs at main · get-co...
Was this page helpful?