fix: ChromaDB provisioner reliability + single-instance#98
Merged
Conversation
…nagement - Kill orphaned ChromaDB process on health check timeout instead of leaving it running - Detect early subprocess exit during startup (fail fast instead of waiting 60s) - Post-health liveness check to guard against wrong process on same port - Extend graceful shutdown from 2s to 10s polling to reduce SIGKILL corruption risk - Delete 0-byte chroma.sqlite3 on startup to recover from SIGKILL-corrupted DB - Annotate ingestion errors with dataset type prefix for easier debugging - Add tauri-plugin-single-instance to prevent multiple app instances - Hide app from taskbar when minimized to tray, restore on show - Log window operation errors instead of silently ignoring them
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Production debugging revealed ChromaDB's internal SQLite (
chroma.sqlite3) was corrupted (0 bytes) by process-wick SIGKILL'ing the process group mid-write, causing cascading failures on subsequent boots.chroma.sqlite3on startup so ChromaDB recreates it fresh[dataset_type]for easier debuggingtauri-plugin-single-instanceto prevent multiple app instances; second launch focuses existing windowTest plan
~/.syft-space/chromadb/chroma.sqlite3, start app — verify it's deleted and ChromaDB starts fresh[local_file] Ingestion error: ...prefix