Merge pull request #3660 from pipecat-ai/aleix/interruption-frame-completion-event

Attach asyncio.Event to InterruptionFrame for completion signaling
This commit is contained in:
Aleix Conchillo Flaqué
2026-02-06 10:14:26 -08:00
committed by GitHub
9 changed files with 220 additions and 42 deletions

View File

@@ -0,0 +1 @@
- Moved interruption wait event from per-processor instance state to `InterruptionFrame` itself. Added `InterruptionFrame.complete()` to signal when the interruption has fully traversed the pipeline. Custom processors that block or consume an `InterruptionFrame` before it reaches the pipeline sink must call `frame.complete()` to avoid stalling `push_interruption_task_frame_and_wait()`. A warning is logged if completion does not happen within 2 seconds.