Skip to content

fix: unblock jobs after process init failure#5871

Closed
he-yufeng wants to merge 1 commit into
livekit:mainfrom
he-yufeng:fix/proc-pool-launch-timeout
Closed

fix: unblock jobs after process init failure#5871
he-yufeng wants to merge 1 commit into
livekit:mainfrom
he-yufeng:fix/proc-pool-launch-timeout

Conversation

@he-yufeng
Copy link
Copy Markdown
Contributor

Summary

  • wake jobs waiting on ProcPool when a process fails initialization
  • retry the existing 3-attempt launch path instead of waiting forever on an empty warmed-process queue
  • cover the failure path with a fake executor test that does not depend on OS process spawning

To verify

  • python -m py_compile livekit-agents\livekit\agents\ipc\proc_pool.py tests\test_ipc.py
  • uv run ruff check livekit-agents\livekit\agents\ipc\proc_pool.py tests\test_ipc.py
  • uv run pytest tests/test_ipc.py::test_proc_pool_launch_job_returns_when_initialization_fails -q --basetemp .tmp\pytest-5868-fast -p no:cacheprovider

Related: #5868

@CLAassistant
Copy link
Copy Markdown

CLAassistant commented May 28, 2026

CLA assistant check
All committers have signed the CLA.

Copy link
Copy Markdown
Contributor

@devin-ai-integration devin-ai-integration Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no bugs or issues to report.

Open in Devin Review

@longcw
Copy link
Copy Markdown
Contributor

longcw commented May 28, 2026

thanks for the pr! closing in favor of #5874 which takes a slightly different approach

@longcw longcw closed this May 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants