Improved auto-scan task initialization and status tracking.

- Added autoscan status tracking in pipeline
- Ensured auto-scan runs only once per startup
This commit is contained in:
yangdx
2025-03-10 17:14:14 +08:00
parent 3cca18c59c
commit 5d64f3b0a0
2 changed files with 19 additions and 16 deletions

View File

@@ -286,6 +286,7 @@ async def initialize_pipeline_status():
history_messages = _manager.list() if is_multiprocess else []
pipeline_namespace.update(
{
"autoscanned": False, # Auto-scan started
"busy": False, # Control concurrent processes
"job_name": "Default Job", # Current job name (indexing files/indexing texts)
"job_start": None, # Job start time