Can you stop the whole workflow like this rather than having to run a repetitive check inside every

Can you stop the whole workflow like this rather than having to run a repetitive check inside every subsequent step?

step.do () => {
return { stopWorkflow: true }
}

if(stopWorkflow) return;

step.do () => {
// some other step code that will never execute if stopWorkflow did an early return above
}

step.do () => {
// another step here that will never execute if stop workflow did early return
}
Was this page helpful?