Skip to content

Commit 70e1980

Browse files
authored
docs(workflows): describe what still runs when a stop-after target is ruled out (#8663)
When routing rules out the stopAfterBlockId target, the engine stops scheduling at that decision but lets blocks that already started finish. The contract said the other branches never run. Reword it, and regenerate the OpenAPI spec. Behaviour is unchanged.
1 parent 239526a commit 70e1980

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎apps/docs/openapi-v2-workflows.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12617,7 +12617,7 @@
1261712617
]
1261812618
},
1261912619
"stopAfterBlockId": {
12620-
"description": "Saved workflow block after which the run stops; downstream blocks do not execute. Must not be inside a loop or parallel. If a router, condition, or untaken error path routes the run away from the block, the run fails as soon as that is decided, without running the other branches. With a block entry naming the same block, re-runs only that block against the source run.",
12620+
"description": "Saved workflow block after which the run stops; downstream blocks do not execute. Must not be inside a loop or parallel. If a router, condition, or untaken error path routes the run away from the block, the run fails as soon as that is decided; no further block starts, though blocks already running finish. With a block entry naming the same block, re-runs only that block against the source run.",
1262112621
"type": "string",
1262212622
"minLength": 1
1262312623
}

‎apps/sim/lib/api/contracts/v2/workflows.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1302,7 +1302,7 @@ export const v2WorkflowRunSelectionSchema = z.discriminatedUnion('source', [
13021302
.min(1, 'run.stopAfterBlockId cannot be empty')
13031303
.optional()
13041304
.describe(
1305-
'Saved workflow block after which the run stops; downstream blocks do not execute. Must not be inside a loop or parallel. If a router, condition, or untaken error path routes the run away from the block, the run fails as soon as that is decided, without running the other branches. With a block entry naming the same block, re-runs only that block against the source run.'
1305+
'Saved workflow block after which the run stops; downstream blocks do not execute. Must not be inside a loop or parallel. If a router, condition, or untaken error path routes the run away from the block, the run fails as soon as that is decided; no further block starts, though blocks already running finish. With a block entry naming the same block, re-runs only that block against the source run.'
13061306
),
13071307
})
13081308
.strict(),

0 commit comments

Comments
 (0)