diff --git a/executor/index.ts b/executor/index.ts index c6b7c5e433..71f182e36e 100644 --- a/executor/index.ts +++ b/executor/index.ts @@ -37,7 +37,7 @@ export class Executor { // Validate that the workflow has a starter block const starterBlock = this.workflow.blocks.find((block) => block.metadata?.id === 'starter') - if (!starterBlock) { + if (!starterBlock || !starterBlock.enabled) { throw new Error('Workflow must have a starter block') }