Skip to content

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

Open
rustatian wants to merge 1 commit into
masterfrom
fix/ready-active-workers
Open

rustatian wants to merge 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.

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