StopNotInterruptibleBlock

The StopNotInterruptibleBlock action marks the end of a non-interruptible block of code. After this action, incoming events can once again interrupt the execution of the current skill.

Must be paired with StartNotInterruptibleBlock which begins the non-interruptible section.

StopNotInterruptibleBlock()

Example

{{StartNotInterruptibleBlock()}}

{{!-- Critical operations that should not be interrupted --}}
{{Set(name="data", value=GetCustomerAttribute(field="important_data"))}}
{{SendMessage(message=data)}}

{{StopNotInterruptibleBlock()}}

{{!-- Normal operations that can be interrupted --}}
{{SendMessage(message="You may continue.")}}

The above code snippet ends the non-interruptible block, allowing incoming events to interrupt execution again after the critical operations have completed.