examples(foundational): update handle_signint depending on transport

This commit is contained in:
Aleix Conchillo Flaqué
2025-05-27 08:02:16 -07:00
parent 884268fce3
commit 6393e89022
123 changed files with 290 additions and 269 deletions

View File

@@ -82,7 +82,7 @@ transport_params = {
}
async def run_example(transport: BaseTransport, _: argparse.Namespace):
async def run_example(transport: BaseTransport, _: argparse.Namespace, handle_sigint: bool):
"""Run the Calendar Month Narration bot using WebRTC transport.
Args:
@@ -174,7 +174,7 @@ async def run_example(transport: BaseTransport, _: argparse.Namespace):
await task.cancel()
# Run the pipeline
runner = PipelineRunner(handle_sigint=False)
runner = PipelineRunner(handle_sigint=handle_sigint)
await runner.run(task)