I have two parallel branches, and each step is a Wait node (“Resume: On Webhook Call”):
Webhook -> A -> B1 (Wait) -> B2 (Wait) -> Merge -> D (Wait)
A -> C1 (Wait) -> C2 (Wait) -> Merge
I want B1 and C1 to be waiting at the same time, so that two people can handle them in parallel.
What actually happens:
The execution stops at B1. C1 doesn’t run at all.
Each call to $execution.resumeUrl moves forward by only one Wait node, always in this order: B1 → B2 → C1 → C2 → Merge → D.
The docs say v1 execution order runs one branch to the end before starting the next, so I guess this is expected. Is there a way to have both B1 and C1 waiting at the same time and resume them separately, then continue to D after both are done?
The original Merge won’t collect their completed results. Pass a shared request ID and revision to both children, save their completion separately, and have a coordinator queue D when both are complete. A scheduled scan can pick up pending work if a completion notification is lost.
I attached a standalone SQLite join example. Its 12 local assertions cover completion order, replayed completions, sequential claims and current-revision checks at enqueue/claim. Unknown dispatch is marked for manual review; automatic reconciliation isn’t implemented. This is SQL-only—not an n8n import or a runtime, restart or true-concurrency test. Use a separate application database, never n8n’s internal SQLite DB.
For live approvals, put authenticated, step-specific forms in front of the resume webhooks. Check the person and request revision too, so replaying B1 cannot advance B2. D’s external writes still need their own idempotency/recovery handling.
Can either person reject or revise the request, or should D run whenever both finish? That determines what counts as completion. parallel-approval-proof.json (14.1 KB)
Inside one execution you can’t do it. An execution has a single waiting point, so a second Wait can’t be active at the same time. That’s why each resume only moves you forward one Wait. The fix is to give each branch its own execution, then have the parent wait until both have reported back.
Parent workflow
Webhook → A → Execute Workflow (sub-workflow B) → Execute Workflow (sub-workflow C) → Wait (Resume: On Webhook Call, POST) → IF → D
On both Execute Workflow nodes, turn offWait For Sub-Workflow Completion. Both children then start right away and the parent moves straight on to its Wait.
Send the parent’s resume URL to each child as an input: resumeUrl = {{ $execution.resumeUrl }}. You can use it before the Wait node runs, and it stays the same for the whole execution.
IF condition (Number): {{ $runIndex }}is greater than or equal to1
true → D
false → connect back into the Wait node
Sub-workflows B and C
When Executed by Another Workflow (input resumeUrl) → B1 (Wait) → B2 (Wait) → HTTP Request, POST to {{ $('When Executed by Another Workflow').first().json.resumeUrl }} with a body like {"branch":"B"}
Why it works: each child is a separate execution, so B1 and C1 really do wait at the same time. Each child’s $execution.resumeUrl is its own URL, so send that one to the person handling that branch. The parent’s resume URL is the same on every pass, so it gets called twice. The first call resumes the parent, the IF sees run 0 and loops back to the Wait. The second call gets run 1, which goes on to D.
One edge case: if both children finish within the same second, the second POST can arrive while the parent isn’t waiting yet. Turn on Retry On Fail on the children’s HTTP Request nodes (for example 3 tries, 2s apart) to cover that.
I haven’t run this exact setup yet, so please tell me if any step doesn’t behave as described.
One thing to change in the callback example: $runIndex counts runs of the IF node, not which branch finished. If B’s callback is retried after the parent enters Wait again, it can reach D while C is still waiting.
Keep B and C in separate sub-workflows, but use the completion records Marchik described. Key them by requestId + revision + branch, make repeats of B a no-op, and trigger D once only when both B and C are complete for that revision.
You can check the join in a test workflow with B, B, then C. D should stay pending after B, B and run once after C.
One more check for the coordinator: two runs could both see “B and C complete” and enqueue D. Deduplicating the branch callbacks doesn’t prevent that race.
I’d give the D queue entry a database-enforced unique key on (requestId, revision, action) and use an atomic insert with conflict handling, rather than “check whether D exists, then insert.” A duplicate attempt should leave the existing work item intact, not reset its status.
To test the race, pause two coordinator runs after both have checked that the same revision is ready, then release both to insert. Expect one D work item; the other attempt should report that it already exists. Two sequential runs wouldn’t exercise this failure.
That gives you two separate checks: B, B, C for distinct branch completion, and overlapping inserts for single queue admission. Neither proves D’s external write happens only once; that still needs destination-side idempotency or reconciliation.