-
Notifications
You must be signed in to change notification settings - Fork 504
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
87fee72
commit a8b777f
Showing
14 changed files
with
450 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"livekit-agents": patch | ||
--- | ||
|
||
ipc: add threaded job runner |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,17 @@ | ||
from . import channel, proc_pool, proto, supervised_proc | ||
from . import ( | ||
channel, | ||
job_executor, | ||
proc_job_executor, | ||
proc_pool, | ||
proto, | ||
thread_job_executor, | ||
) | ||
|
||
__all__ = ["proto", "channel", "proc_pool", "supervised_proc"] | ||
__all__ = [ | ||
"proto", | ||
"channel", | ||
"proc_pool", | ||
"proc_job_executor", | ||
"thread_job_executor", | ||
"job_executor", | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
from __future__ import annotations | ||
|
||
from typing import Any, Protocol | ||
|
||
from ..job import RunningJobInfo | ||
|
||
|
||
class JobExecutor(Protocol): | ||
@property | ||
def started(self) -> bool: ... | ||
|
||
@property | ||
def start_arguments(self) -> Any | None: ... | ||
|
||
@start_arguments.setter | ||
def start_arguments(self, value: Any | None) -> None: ... | ||
|
||
@property | ||
def running_job(self) -> RunningJobInfo | None: ... | ||
|
||
async def start(self) -> None: ... | ||
|
||
async def join(self) -> None: ... | ||
|
||
async def initialize(self) -> None: ... | ||
|
||
async def aclose(self) -> None: ... | ||
|
||
async def launch_job(self, info: RunningJobInfo) -> None: ... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.