feat: implement instance readiness gate for HTTP service.#58
Conversation
There was a problem hiding this comment.
Code Review
This pull request introduces a readiness check mechanism for the HTTP server, ensuring it only runs when valid instance groups are available. It adds a new readiness thread in the Master class, a configuration flag for the check interval, and helper methods in the InstanceMgr and Scheduler classes to verify instance availability. The review identified two areas for improvement: the sleep loop in the readiness thread should use std::chrono for better robustness and readability, and the duplicated validation logic for prefill instances in InstanceMgr should be refactored into a private helper function.
9bf4050 to
5a432a3
Compare
|
/gemini review |
|
Warning Gemini encountered an error creating the review. You can try again by commenting |
|
/gemini review |
|
Warning Gemini encountered an error creating the review. You can try again by commenting |
No description provided.