From 9cb66184c127f415dde980fd9624968e638d279b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9o=20Monnom?= Date: Sat, 14 Sep 2024 10:24:34 -0700 Subject: [PATCH] limit concurrent process init to 1 (#751) --- .changeset/quiet-eagles-add.md | 5 +++++ livekit-agents/livekit/agents/ipc/proc_pool.py | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changeset/quiet-eagles-add.md diff --git a/.changeset/quiet-eagles-add.md b/.changeset/quiet-eagles-add.md new file mode 100644 index 000000000..957be5006 --- /dev/null +++ b/.changeset/quiet-eagles-add.md @@ -0,0 +1,5 @@ +--- +"livekit-agents": patch +--- + +limit concurrent process init to 1 diff --git a/livekit-agents/livekit/agents/ipc/proc_pool.py b/livekit-agents/livekit/agents/ipc/proc_pool.py index f4fe40634..5713956a5 100644 --- a/livekit-agents/livekit/agents/ipc/proc_pool.py +++ b/livekit-agents/livekit/agents/ipc/proc_pool.py @@ -15,7 +15,7 @@ "process_created", "process_started", "process_ready", "process_closed" ] -MAX_CONCURRENT_INITIALIZATIONS = 3 +MAX_CONCURRENT_INITIALIZATIONS = 1 class ProcPool(utils.EventEmitter[EventTypes]):