Skip to content

fix(ipc): back off failed process initialization - #6689

Open
swayamg20 wants to merge 1 commit into
livekit:mainfrom
swayamg20:fix/4857-process-init-backoff
Open

fix(ipc): back off failed process initialization#6689
swayamg20 wants to merge 1 commit into
livekit:mainfrom
swayamg20:fix/4857-process-init-backoff

Conversation

@swayamg20

Copy link
Copy Markdown
Contributor

Summary

  • add bounded exponential backoff from 1 to 30 seconds after failed idle-process initialization
  • allow waiting jobs to bypass the cooldown only for the process capacity they require
  • reset retry escalation after a successful initialization and cover failure, exception, cooldown, and resumption paths

Fixes #4857

Testing

  • uv run pytest tests/test_ipc.py --unit -q — 16 passed
  • make check
  • uv run pytest --unit -q --ignore=tests/test_room.py — 1708 passed, 2 skipped (tests/test_room.py requires a local livekit-server binary)

@swayamg20
swayamg20 requested a review from a team as a code owner August 3, 2026 21:50

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

Copy link
Copy Markdown
Contributor

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 potential bugs to report.

View in Devin Review to see 2 additional findings.

Open in Devin Review

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.

Initialization loops drains CPU resources

1 participant