-
Notifications
You must be signed in to change notification settings - Fork 1
Limit the maximum number of retries for starting opsqueue #31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
We should eventually fail if we can't start the server.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR modifies the server startup retry behavior to fail after a limited number of attempts rather than retrying indefinitely. This ensures that if the server cannot be started (e.g., due to missing dependencies like rust-src for Rust analyzer), it will eventually fail with a clear error instead of retrying forever.
Key Changes:
- Changed the server startup retry policy from unlimited retries to a maximum of 10 attempts
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
@ReinierMaas I'm only back next week so ask Sander or Adrian for a review if you want it before then. |
|
@OpsBotPrime merge |
|
Merge rejected: the base branch of this pull request must be set to master. It is currently set to reinier/log-bound-server-port. |
|
@OpsBotPrime merge |
|
Rebased as ace9951, waiting for CI … |
|
CI job 🟡 started. |
Changes: - Log the locally bound server address on startup, for easier debugging, especially when the port is randomly bound (PR #30 ) - Limit the maximum number of retries when starting Opsqueue and it failing to connect to a port. (PR #31 ) - Ensure `rust-src` is included in the `default.nix` shell, allowing the Rust language server to work without having to pull in the rust stdlib src outside of Nix. (PR #32)
We should eventually fail if we can't start the server.