Skip to content

RAGFlow is an agent-native database: a Retrieval-Augmented Generation (RAG) engine that grew into context infrastructure.

Fix update_progress issue (#6992)

Zhichang Yu23c5ce48d1d0
diff --git a/api/ragflow_server.py b/api/ragflow_server.py
index d98f8a264b..1b6775c06a 100644
--- a/api/ragflow_server.py
+++ b/api/ragflow_server.py
@@ -61,8 +61,8 @@ def update_progress():
stop_event.wait(6)
except Exception:
logging.exception("update_progress exception")
- if redis_lock.acquired:
- redis_lock.release()
+ finally:
+ redis_lock.release()
def signal_handler(sig, frame):
logging.info("Received interrupt signal, shutting down...")