Update document_routes.py

This commit is contained in:
hzywhite 2025-09-02 06:51:32 +08:00
parent cb003593df
commit bd533783e1

View file

@ -1499,15 +1499,15 @@ async def run_scanning_process(
if new_files: if new_files:
# Process all files at once with track_id # Process all files at once with track_id
if is_pipeline_busy: if is_pipeline_busy:
logger.info( logger.info(
"Pipe is currently busy, skipping processing to avoid conflicts..." "Pipe is currently busy, skipping processing to avoid conflicts..."
) )
return return
if is_pipeline_scan_busy: if is_pipeline_scan_busy:
logger.info( logger.info(
"Pipe is currently busy, skipping processing to avoid conflicts..." "Pipe is currently busy, skipping processing to avoid conflicts..."
) )
return return
if scheme_name == "lightrag": if scheme_name == "lightrag":
await pipeline_index_files( await pipeline_index_files(
rag, new_files, track_id, scheme_name=scheme_name rag, new_files, track_id, scheme_name=scheme_name