Does Cloud workflow timeout include time in persisted Wait?

We are checking timeout semantics in n8n Cloud Starter with an isolated manual workflow containing only Manual Trigger, Code, IF and Wait. There are no external requests, credential references or business integrations in this probe.

Configuration: workflow timeout120s, two consecutive planned70s time-interval waits through repeated visits to one Wait node. Native evidence confirms one completed Wait visit and a pending Wait at termination; configuration alone does not prove two completed persisted waits. The runtime version was observed as2.43.4; the instance UI was later observed as2.44.0. Native startedAt/stoppedAt difference for one run was144.006s. Stored status:canceled, error:ManualExecutionCancelledError, reason:manual. The observer sent no Stop, but the cancellation actor is unknown. A separate125s observation checkpoint was missed; we are not treating that procedure as a valid safety test.

We need to distinguish application admission deadlines from actual engine termination. The observed144.006s does not satisfy our125s terminal acceptance bound; we are not asking to redefine that result as PASS.

Questions:

  1. Does executionTimeout120 include wall-clock time spent in database-backed Wait on Cloud, or is enforcement tied to active/resumed segments?
  2. Which component enforces timeout while an execution is waiting, and is any terminal upper bound documented for persisted/resumed runs?
  3. Is a120s timeout with terminal completion by125s supported across persisted Wait? If not, what limitation should an application design account for?
  4. Can a timeout-originated cancellation be stored asManualExecutionCancelledError/reasonmanual? What nonsecret evidence would distinguish the cause?

The official Wait docs distinguish waits shorter than65s from persisted waits. The public runner/tracker/worker source paths appear mode-dependent, but we do not know the Cloud instance’s deployed path. We have not inferred a cause from144s being numerically close to120s plus24s.

References:

We are seeking an explanation or published reference, not requesting anyone to access or change our instance. No raw execution export, credentials or resume/session identifiers are attached.

Hey @Aveliq, while you wait for a response, here are some things that might help:

Suggested resources

Automatically matched to your question.

Docs:

Forum:

@Erick_Torres, @anicolco, @tamy.santos - you’ve helped with similar issues before, can you take a look?

Automatically suggested by n8n’s community bot. It’s a pilot - please share feedback here.

Hey @Aveliq Welcome to the N8n community,
The 144s and the ManualExecutionCancelledError come from the same code path at 2.43.4, assuming the run went through the regular (non-queue) runner, which is what your result looks like.

Nothing enforces the timeout while an execution sits in a persisted Wait. The timer lives in WorkflowRunner.runMainProcess and is cleared when the run pauses. On resume, the wait tracker passes the original startedAt, and the runner sets the remaining budget to max(timeout - (now - startedAt), 0). So wall-clock time spent waiting does count, but it’s only checked at the next resume. Your second 70s wait went to the database at around 70s, came back at around 144s, found 0s left and was cancelled straight away. There’s no documented terminal bound for this: the real bound is the waitTill of whichever Wait is pending at the deadline, plus resume latency (the tracker polls the database every 60s and then sets an in-process timer per execution). So “120s timeout, terminal by 125s” can’t hold across any wait of 65s or more. Design for the timeout firing at the first resume after the deadline.

And yes, a timeout can be stored as ManualExecutionCancelledError with reason manual. The runner cancels with TimeoutExecutionCancelledError, but the engine only records a timeout when its own timedOut flag is set. That flag comes from executionTimeoutTimestamp, which on resume is recomputed as Date.now() + timeout, so it hasn’t passed, and the cancel gets written as manual. Timing is what tells the two apart: a timeout cancel lands at the resume moment, right after the pending Wait’s waitTill.

Queue mode is different: job-processor.ts recomputes the deadline from Date.now() when a worker picks up each resumed segment, so there waiting time doesn’t count at all and each segment gets the full budget.

Hi @Aveliq, the regular 2.43.4 timeout path can produce that manual label: the runner cancels the promise, while the engine selects its error using timedOut. The label doesn’t identify an actor or execution mode. The 144s record also doesn’t prove that the second Wait finished.

runMainProcess clears its timer when execution suspends, then subtracts elapsed wall time from the original startedAt on resume. The queue worker creates a fresh deadline for each resumed job. Manual executions can still use the main process in queue mode, depending on manual offloading.

The Wait tracker schedules resumption from waitTill; it doesn’t enforce a separate workflow timeout while the run is persisted. These docs and paths don’t promise terminal status by 125s.

Ask Cloud support to correlate the execution ID with the actual runner path, requested cancellation reason and resume timestamps. Timing alone won’t distinguish a timeout from another cancellation. For a 125s application deadline, reject expired work where side effects are accepted; that is separate from when n8n reaches terminal status.

Thank you @Deepankar and @Anshul_Namdev for the detailed explanations and source references. The distinction between an application deadline and n8n reaching terminal status is very helpful. We will keep the observed 144s cancellation cause unconfirmed: the error label and timing alone do not establish the runner path or cancellation actor, and we will not treat the workflow timeout as a guaranteed 125s terminal bound across persisted Wait.

One practical follow-up: we are on n8n Cloud Starter. Which supported private channel should we use to request the execution-ID correlation you suggested (actual runner path/manual offloading, requested cancellation reason, and resume timestamps)? Is there any supported read-only evidence available to a Cloud user that can establish those facts without another test execution, or does this require server-side support logs?

We can provide the execution reference privately through the appropriate channel; no raw execution data or credentials will be posted here. Thanks again!

You’re right to keep the 144s cause unconfirmed. My earlier claim about identifying it from the timing was too definite.

The documented private contact is help@n8n.io. Send the execution reference, instance URL, timestamps with timezone, and this thread as a suspected platform issue, and ask whether they can correlate the existing records. Starter doesn’t include in-depth runtime debugging, so I can’t promise that investigation. You can inspect retained execution details without another test run, but the timing and manual label don’t establish the runner path or cancellation actor. n8n would need to confirm what instance-side evidence is still available.

n8n’s support scope