Skip to content

Commit

Permalink
ensure job status updates contain the correct status (#1319)
Browse files Browse the repository at this point in the history
Co-authored-by: Théo Monnom <theo.8bits@gmail.com>
  • Loading branch information
davidzhao and theomonnom authored Jan 2, 2025
1 parent 55e6f0e commit f483f04
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/lazy-buckets-obey.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"livekit-agents": patch
---

ensure job status updates contain the correct status
5 changes: 5 additions & 0 deletions livekit-agents/livekit/agents/ipc/job_proc_executor.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,11 @@ async def _main_task(self, ipc_ch: aio.ChanReceiver[channel.Message]) -> None:
finally:
await aio.gracefully_cancel(*self._inference_tasks)

@log_exceptions(logger=logger)
async def _supervise_task(self) -> None:
try:
await super()._supervise_task()
finally:
self._job_status = (
JobStatus.SUCCESS if self.exitcode == 0 else JobStatus.FAILED
)
Expand Down

0 comments on commit f483f04

Please sign in to comment.