Fix: linearize callable admission with worker close - #1671
Conversation
L2 registration keeps NEW publication under the lifecycle lock. Every post-start unregister uses the READY-only operation lease. Race tests cover local and remote crossover paths with a hard timeout.
|
Warning Review limit reached
Next review available in: 20 minutes You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
NEW; registrations after initialization require theREADYoperation leaseNEWand reject admission afterclose()claims the terminal lifecycle stateThese rules make callable admission linearizable with
close(): a callable is either fully admitted before close begins or rejected without publishing partial registry state.Validation
python -m pytest tests/ut -q: 1069 passed, 13 skipped, 1 xfailedruff checkandruff format --checkpass on changed filespyrightreports 0 errors on changed filesgit diff --checkpassesThe change and its regression coverage are device-free Python paths; no hardware-specific code is modified.