Skip to content

Optimizer initialization takes long time causing warning and error messages in thv proxy logs #48

@ptelang

Description

@ptelang

After a MCP server is launched, thv attempts to connect to the server. Since optimizer takes a long time to initialize before the server process is launched, thv proxy reports errors and warning messages like below.

10:58AM INFO       MCP server not initialized yet, skipping health check for http://127.0.0.1:22262
10:58AM INFO       MCP server not initialized yet, skipping health check for http://127.0.0.1:22262
10:58AM INFO       MCP server not initialized yet, skipping health check for http://127.0.0.1:22262

To address this issue, we need to launch the server process early and move the server initialization steps out of that execution path.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions