Skip to main content

Interruption Workflow Activity

This activity is used to interrupt the execution of the workflow.

interface MyInterruptionStep extends Step {
componentType: 'task';
type: 'interrupt';
/* ... */
}

const interruptActivity = createInterruptionActivity<MyInterruptionStep, MyGlobalState>('interrupt', {
handler: async (step: Step, globalState: MyGlobalState) => {
/* Some code before interruption */
}
})