feat: abort call on pipeline error and send rtf event

This commit is contained in:
Abhishek Kumar 2026-03-05 14:51:39 +05:30
parent 1614879ddd
commit dfb741e475
9 changed files with 86 additions and 10 deletions

View file

@ -536,10 +536,11 @@ class PipecatEngine:
# Mute the pipeline
self._mute_pipeline = True
# Perform final variable extraction synchronously before ending
await self._perform_variable_extraction_if_needed(
self._current_node, run_in_background=False
)
if reason != EndTaskReason.PIPELINE_ERROR.value:
# Perform final variable extraction synchronously before ending
await self._perform_variable_extraction_if_needed(
self._current_node, run_in_background=False
)
frame_to_push = (
CancelFrame(reason=reason) if abort_immediately else EndFrame(reason=reason)