Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Execution order

When a node finishes, the engine decides which node runs next. For a straight line of nodes the answer is obvious; for branches, merges and loops it depends on the workflow’s executionOrder setting. Tappet implements both orders so that imported workflows behave as they did before.

Sequential and deterministic

Within one execution, nodes run one at a time and in a deterministic order. The same workflow with the same input always runs its nodes in the same sequence, which matters for side effects (the order messages are sent, rows are written) and for which nodes $('Node') can see.

Executions themselves run concurrently: a worker runs many executions at once, each sequentially.

New workflows can opt into parallel branch execution with the tappet.parallelBranches setting. It is never enabled for imported workflows, because it changes the order of side effects and the visibility of other nodes’ data.

The two orders

SettingUsed forSummary
v1New workflows (default)Branch by branch. When a node has several outgoing branches, one branch runs to completion before the next starts. Branches are taken in canvas order: higher on the canvas first, and left before right at the same height.
v0Imported workflows without the settingBreadth first. Successors are queued in connection order, so the first nodes of different branches can interleave.

The exact rules, including the edge cases below, are pinned by golden traces recorded from black-box runs and described in parity/notes/execution-order.md. Every parity fixture records the node sequence, and Tappet must reproduce it exactly. If you see a different order for an imported workflow, that is a bug: please report it with the workflow.

Example: a webhook feeds an IF node; the true branch posts to Slack then writes to a sheet; the false branch sends an email.

Webhook -> IF -+-> (true)  Slack -> Sheets
               +-> (false) Email

With v1 and the true branch higher on the canvas, the sequence is Webhook, IF, Slack, Sheets, Email: the true branch finishes before the false branch starts. With v0, the first node of each branch is queued as soon as IF finishes, so Email can run before Sheets. If your workflow relies on one branch finishing first, use v1, or join the branches explicitly with a Merge node.

Nodes with several inputs

A node with more than one input (Merge, Compare Datasets) waits until each of its inputs has either received data or can no longer receive any in this execution. If one input branch never runs (for example an IF sent every item the other way), the node runs with what it has, following the observed rule for its mode: some Merge modes pass the available input through, others emit nothing.

Loops

Loop Over Items (Split in Batches) emits one batch at a time on its loop output. The nodes in the loop body run, and the last one connects back to Loop Over Items, which emits the next batch. When all batches are done it emits the combined results on its done output.

Fetch -> Loop Over Items -+-> (loop) Enrich -> Wait 1s --+
             ^            |                              |
             +------------+------------------------------+
                          +-> (done) Report

Each pass through the loop body is a new run of those nodes, with an increasing $runIndex. TAPPET_MAX_NODE_RUNS (default 10,000) limits how often one node can run per execution.

Disabled nodes

A disabled node does not execute. Its input items pass through unchanged on output 0, so the rest of the workflow keeps running.

Partial executions

In the editor you can run a workflow from a selected node. Tappet then:

  1. reuses the most recent run data (or pinned data) of the node’s ancestors,
  2. executes the selected node and everything downstream of it.

Triggers, webhooks and LLM calls in reused nodes are not run again. If an ancestor has no run data and no pinned data, it is executed as part of the partial run.

Sub-workflows

The Execute Workflow node starts another workflow, either synchronously (wait for its result and continue with the items it returns) or fire-and-forget. The called workflow starts at its Execute Workflow Trigger. Calls can nest up to 10 levels by default (TAPPET_MAX_SUB_WORKFLOW_DEPTH). The called workflow’s callerPolicy setting decides which workflows may call it.