server: (router) allow child process to report status via stdout (#18110)
* server: (router) allow child process to report status via stdout * apply suggestions
This commit is contained in:
parent
8faa87db02
commit
bde461de8c
3 changed files with 21 additions and 44 deletions
|
|
@ -153,7 +153,6 @@ int main(int argc, char ** argv, char ** envp) {
|
|||
routes.get_models = models_routes->get_router_models;
|
||||
ctx_http.post("/models/load", ex_wrapper(models_routes->post_router_models_load));
|
||||
ctx_http.post("/models/unload", ex_wrapper(models_routes->post_router_models_unload));
|
||||
ctx_http.post("/models/status", ex_wrapper(models_routes->post_router_models_status));
|
||||
}
|
||||
|
||||
ctx_http.get ("/health", ex_wrapper(routes.get_health)); // public endpoint (no API key check)
|
||||
|
|
@ -291,7 +290,7 @@ int main(int argc, char ** argv, char ** envp) {
|
|||
const char * router_port = std::getenv("LLAMA_SERVER_ROUTER_PORT");
|
||||
std::thread monitor_thread;
|
||||
if (router_port != nullptr) {
|
||||
monitor_thread = server_models::setup_child_server(params, std::atoi(router_port), params.model_alias, shutdown_handler);
|
||||
monitor_thread = server_models::setup_child_server(shutdown_handler);
|
||||
}
|
||||
|
||||
// this call blocks the main thread until queue_tasks.terminate() is called
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue