chore: archive deprecated chromadb and migration scripts
This commit is contained in:
@@ -565,6 +565,7 @@ async def get_status(auth: str = Depends(require_auth)):
|
||||
|
||||
# Watcher status
|
||||
watcher_running = False
|
||||
watcher_ingestion = {"status": "idle", "message": "", "file_count": 0}
|
||||
last_indexed = "Unknown"
|
||||
try:
|
||||
import time as _time, json as _json
|
||||
@@ -573,6 +574,7 @@ async def get_status(auth: str = Depends(require_auth)):
|
||||
_s = _json.loads(_sp.read_text())
|
||||
_age = _time.time() - _s.get("timestamp", 0)
|
||||
watcher_running = _s.get("running", False) and _age < 30
|
||||
watcher_ingestion = _s.get("ingestion", watcher_ingestion)
|
||||
except:
|
||||
pass
|
||||
|
||||
@@ -613,6 +615,7 @@ async def get_status(auth: str = Depends(require_auth)):
|
||||
return JSONResponse({
|
||||
"aaron_ai": "running",
|
||||
"watcher": "running" if watcher_running else "stopped",
|
||||
"watcher_ingestion": watcher_ingestion,
|
||||
"chunk_count": chunk_count,
|
||||
"file_count": file_count,
|
||||
"last_indexed": last_indexed,
|
||||
|
||||
Reference in New Issue
Block a user