Skip to content

~95% on SimpleQA (e.g. Qwen3.6-27B on a 3090). Supports all local and cloud LLMs (llama.cpp, Ollama, Google, ...). 10+ search engines - arXiv, PubMed, your private documents. Everything Local & Encrypted.

fix: Remove broken cleanup-status endpoint

LearningCircuitf32db8bee2d2
diff --git a/src/local_deep_research/news/flask_api.py b/src/local_deep_research/news/flask_api.py
index cfdd9bfb7e..9acef1e1a8 100644
--- a/src/local_deep_research/news/flask_api.py
+++ b/src/local_deep_research/news/flask_api.py
@@ -4,7 +4,6 @@ Converted from FastAPI to match LDR's Flask architecture.
"""
from typing import Dict, Any
-from datetime import datetime
from flask import Blueprint, request, jsonify
from loguru import logger
@@ -735,47 +734,6 @@ def check_subscriptions_now() -> Dict[str, Any]:
return jsonify({"error": str(e)}), 500
-@news_api_bp.route("/scheduler/cleanup-status", methods=["GET"])
-@login_required
-def get_cleanup_status() -> Dict[str, Any]:
- """Get cleanup job status for admin settings."""
- try:
- from .subscription_manager.scheduler import get_news_scheduler
-
- scheduler = get_news_scheduler()
- status = scheduler.cleanup_status.copy()
-
- # Add next run time
- job = (
- scheduler.scheduler.get_job("cleanup_inactive_users")
- if scheduler.is_running
- else None
- )
- if job:
- status["next_run"] = (
- job.next_run_time.isoformat() if job.next_run_time else None
- )
- else:
- status["next_run"] = None
-
- # Add current stats
- status["active_users"] = len(scheduler.user_sessions)
- status["memory_usage"] = scheduler._estimate_memory_usage()
-
- # Format times for display
- if status.get("last_run"):
- status["last_run_ago"] = str(datetime.now() - status["last_run"])
- status["last_run"] = status["last_run"].isoformat()
- if status.get("last_success"):
- status["last_success"] = status["last_success"].isoformat()
-
- return jsonify(status)
-
- except Exception as e:
- logger.exception("Error getting cleanup status")
- return jsonify({"error": str(e)}), 500
-
-
@news_api_bp.route("/scheduler/cleanup-now", methods=["POST"])
@login_required
def trigger_cleanup() -> Dict[str, Any]: