LearnNewsExamplesServices
Frontmatter
id7547
titleEnhance DatabaseLifecycleService with Eventing
stateClosed
labels
enhancementai
assigneestobiu
createdAtOct 18, 2025, 4:42 PM
updatedAtOct 18, 2025, 4:53 PM
githubUrlhttps://github.com/neomjs/neo/issues/7547
authortobiu
commentsCount0
parentIssue7536
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtOct 18, 2025, 4:53 PM

Enhance DatabaseLifecycleService with Eventing

Closed v11.0.0 enhancementai
tobiu
tobiu commented on Oct 18, 2025, 4:42 PM

To provide clear and decoupled notifications about the ChromaDB process management status, this ticket focuses on enhancing the DatabaseLifecycleService singleton with eventing capabilities. This is particularly important given the hybrid strategy where ChromaDB can be managed internally by the service or run externally.

Acceptance Criteria

  1. The DatabaseLifecycleService class mixes in Neo.core.Observable by setting static observable = true.
  2. The startDatabase method is updated to fire a single 'processActive' event when it successfully spawns a new process or detects an externally managed process.
    • This event will include pid (if available), managedByService: true (for internally spawned) or managedByService: false (for externally detected), and a detail string.
  3. The stopDatabase method is updated to fire a 'processStopped' event (with the PID and managedByService: true) when it successfully terminates a managed process.
  4. The mcp-stdio.mjs entry point (or a relevant service) is updated to subscribe to these events for logging purposes, demonstrating the eventing mechanism.
  5. All related functionalities continue to work correctly after the changes.
tobiu assigned to @tobiu on Oct 18, 2025, 4:42 PM
tobiu added the enhancement label on Oct 18, 2025, 4:42 PM
tobiu added the ai label on Oct 18, 2025, 4:42 PM
tobiu added parent issue #7536 on Oct 18, 2025, 4:42 PM
tobiu referenced in commit 3a73808 - "Enhance DatabaseLifecycleService with Eventing #7547" on Oct 18, 2025, 4:52 PM
tobiu closed this issue on Oct 18, 2025, 4:53 PM