Skip to content

Commit aa30767

Browse files
committed
added support to show data-cleaner in status command
1 parent 6135f62 commit aa30767

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,3 +128,5 @@ tests/projects/*/docker-compose.yml
128128
/test_index
129129
PRODUCTIVITY_ANALYSIS.md
130130
/debug
131+
/.local
132+
*.lock

src/code_indexer/cli.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2412,6 +2412,23 @@ def status(ctx, force_docker: bool):
24122412
qdrant_details = "Service down"
24132413
table.add_row("Qdrant", qdrant_status, qdrant_details)
24142414

2415+
# Check Data Cleaner
2416+
try:
2417+
import requests # type: ignore
2418+
2419+
response = requests.get("http://localhost:8091/", timeout=5)
2420+
if response.status_code == 200:
2421+
data_cleaner_status = "✅ Ready"
2422+
data_cleaner_details = "Cleanup service active"
2423+
else:
2424+
data_cleaner_status = "⚠️ Issues"
2425+
data_cleaner_details = f"HTTP {response.status_code}"
2426+
except Exception:
2427+
data_cleaner_status = "❌ Not Available"
2428+
data_cleaner_details = "Service down"
2429+
2430+
table.add_row("Data Cleaner", data_cleaner_status, data_cleaner_details)
2431+
24152432
# Check index with git-aware information
24162433
metadata_path = config_manager.config_path.parent / "metadata.json"
24172434
if metadata_path.exists():

0 commit comments

Comments
 (0)