LearnNewsExamplesServices
Frontmatter
id7539
titleImprove isDbRunning() in DatabaseLifecycleService
stateClosed
labels
enhancementai
assigneestobiu
createdAtOct 18, 2025, 1:51 PM
updatedAtOct 18, 2025, 1:58 PM
githubUrlhttps://github.com/neomjs/neo/issues/7539
authortobiu
commentsCount0
parentIssue7536
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtOct 18, 2025, 1:58 PM

Improve isDbRunning() in DatabaseLifecycleService

Closed v11.0.0 enhancementai
tobiu
tobiu commented on Oct 18, 2025, 1:51 PM

The isDbRunning() method within AI.mcp.server.memory.DatabaseLifecycleService was previously creating a new ChromaClient instance for every check, leading to unnecessary overhead. This ticket documents the improvement to leverage the already instantiated ChromaManager singleton's client for performing the heartbeat() check.

This approach aligns with the goal of integrating Neo.mjs core into the MCP servers by utilizing existing singletons and their managed resources, while also being more efficient.

Acceptance Criteria

  1. The isDbRunning() method in AI.mcp.server.memory.DatabaseLifecycleService imports the ChromaManager singleton.
  2. The isDbRunning() method uses ChromaManager.client.heartbeat() within a try...catch block to check for a running ChromaDB instance.
  3. The method correctly returns true if heartbeat() succeeds and false if it fails (e.g., due to ChromaManager.client being null or the database not being reachable).
tobiu assigned to @tobiu on Oct 18, 2025, 1:51 PM
tobiu added the enhancement label on Oct 18, 2025, 1:51 PM
tobiu added the ai label on Oct 18, 2025, 1:51 PM
tobiu added parent issue #7536 on Oct 18, 2025, 1:51 PM
tobiu referenced in commit 6027547 - "Improve isDbRunning() in DatabaseLifecycleService #7539" on Oct 18, 2025, 1:55 PM
tobiu closed this issue on Oct 18, 2025, 1:58 PM