Skip to content

Commit 07dfedd

Browse files
committed
Fix test
1 parent c68cda6 commit 07dfedd

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

apps/sim/executor/execution/executor.ts

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -107,13 +107,8 @@ export class DAGExecutor {
107107
startBlockId: string,
108108
sourceSnapshot: SerializableExecutionState
109109
): Promise<ExecutionResult> {
110-
// Check if startBlockId is a regular block in the workflow
111-
// Parallel/loop containers are not in workflow.blocks, so we need to handle them differently
112-
const isRegularBlock = this.workflow.blocks.some((b) => b.id === startBlockId)
113-
114-
// For regular blocks, pass startBlockId so DAG includes it and all downstream blocks
115-
// For containers (parallel/loop), build DAG normally and let it find the trigger
116-
const dag = this.dagBuilder.build(this.workflow, isRegularBlock ? startBlockId : undefined)
110+
// Build full DAG to compute upstream set for snapshot filtering
111+
const dag = this.dagBuilder.build(this.workflow)
117112

118113
const executedBlocks = new Set(sourceSnapshot.executedBlocks)
119114
const validation = validateRunFromBlock(startBlockId, dag, executedBlocks)

0 commit comments

Comments
 (0)