Skip to content

fix(status): treat active workers as ready and guard against nil pool - #315

Merged
rustatian merged 1 commit into
masterfrom
fix/ready-active-workers
Dec 1, 2026
Merged

rustatian merged 1 commit into
masterfrom
fix/ready-active-workers

Conversation

@rustatian

Copy link
Copy Markdown
Member

Reason for This PR

Related to roadrunner-server/roadrunner#2403. Readiness failed with 503 when all HTTP workers were busy processing requests, and status or readiness checks panicked when p.pool was nil before startup finished.

Description of Changes

  • Treat any active worker (Ready or Working) as ready in Plugin.Ready.
  • Return 503 Service Unavailable when p.pool is nil, and assign p.pool in Serve only after NewPool succeeds.

License Acceptance

By submitting this pull request, I confirm that my contribution is made under
the terms of the MIT license.

PR Checklist

  • All commits in this PR are signed (git commit -s).
  • The reason for this PR is clearly provided (issue no. or explanation).
  • The description of changes is clear and encompassing.
  • Any required documentation changes (code and docs) are included in this PR.
  • Any user-facing changes are mentioned in CHANGELOG.md.
  • All added/changed functionality is tested.

Signed-off-by: Valery Piashchynski <piashchynski.valery@gmail.com>
@rustatian rustatian added the bug Something isn't working label Nov 27, 2026
Copilot AI balanced review requested due to automatic review settings November 27, 2026 22:18
@rustatian rustatian self-assigned this Nov 27, 2026

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

@codecov

codecov Bot commented Dec 1, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 90.38%. Comparing base (ba72507) to head (f8d0b67).
⚠️ Report is 2 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #315      +/-   ##
==========================================
- Coverage   90.43%   90.38%   -0.05%     
==========================================
  Files          29       29              
  Lines        1348     1342       -6     
==========================================
- Hits         1219     1213       -6     
  Misses        129      129              

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@rustatian
rustatian merged commit 98d9a53 into master Dec 1, 2026
9 of 10 checks passed
@rustatian
rustatian deleted the fix/ready-active-workers branch December 1, 2026 09:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants