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.

Merge dev into fix/queue-consolidation-1029-596

LearningCircuit5d3b96f408c1
diff --cc src/local_deep_research/web/services/research_service.py
index a3e5ebb40a,5f0d5babe9..cdcb82d4e6
--- a/src/local_deep_research/web/services/research_service.py
+++ b/src/local_deep_research/web/services/research_service.py
@@@ -1564,47 -1585,10 +1585,9 @@@ def run_research_process
now = datetime.now(UTC)
completed_at = now.isoformat()
- # NOTE: Database updates from threads are handled by queue processor
- # The queue_processor.queue_error_update() method is already being used below
- # to safely update the database from the main thread
- """
- # DEPRECATED: Direct database updates from background threads
- # Get the start time from the database
- duration_seconds = None
- with get_user_db_session(username) as db_session:
- research = (
- db_session.query(ResearchHistory)
- .filter_by(id=research_id)
- .first()
- )
- assert research is not None, "Research not in database"
-
- duration_seconds = calculate_duration(research.created_at)
-
- with get_user_db_session(username) as db_session:
- research = (
- db_session.query(ResearchHistory)
- .filter_by(id=research_id)
- .first()
- )
- assert research is not None, "Research not in database"
-
- # Update the ResearchHistory object with the new status and completion time
- research.status = status
- research.completed_at = completed_at
- research.duration_seconds = duration_seconds
- research.research_meta = metadata
-
- # Add error report path if available
- if "report_path_to_save" in locals() and report_path_to_save:
- research.report_path = report_path_to_save
-
- db_session.commit()
- """
-
# Queue the error update to be processed in main thread
- # Using the existing queue processor system (there are multiple implementations:
- # processor.py, processor_v2.py, and several queue models as noted in issue #596)
- from ..queue.processor import queue_processor
+ # Using the queue processor v2 system
+ from ..queue.processor_v2 import queue_processor
if username:
queue_processor.queue_error_update(