Skip to content

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

make sure the error will be recorded. (#672)

KevinHuShc28f7b5d3890
diff --git a/rag/svr/task_executor.py b/rag/svr/task_executor.py
index 467ccafc66..0351afa51a 100644
--- a/rag/svr/task_executor.py
+++ b/rag/svr/task_executor.py
@@ -254,8 +254,8 @@ def main():
try:
embd_mdl = LLMBundle(r["tenant_id"], LLMType.EMBEDDING, llm_name=r["embd_id"], lang=r["language"])
except Exception as e:
- traceback.print_stack(e)
- callback(prog=-1, msg=str(e))
+ callback(-1, msg=str(e))
+ cron_logger.error(str(e))
continue
st = timer()