ragflow [Bug]:Assert导致程序终止

2ul0zpep  于 3个月前  发布在  其他
关注(0)|答案(1)|浏览(78)

是否存在相同问题的现有问题?

  • 我已经检查了现有的问题。

分支名称

main

提交ID

c0d71ad

其他环境信息

  • 无响应*

实际行为

因为 tasks = TaskService.get_tasks(msg["id"]) 返回空数组,导致 assert tasks, "{} empty task!".format(msg["id"]) 抛出异常,程序终止

预期行为

对抛出的Assert异常进行捕获处理

重现步骤

1、启动ragflow_server、task_executor、前端项目
2、在系统页面知识库->数据集中新增一个待解析文件,并点击执行按钮
3、在task_executor下的控制台中,提示报错

其他信息

/root/miniconda3/bin/conda run -n ragflow --no-capture-output python /mnt/e/work/shanghai_workspace/ai/ragflow/rag/svr/task_executor.py
[WARNING] Load term.freq FAIL!
[WARNING] [2024-05-24 17:25:31,492] [synonym.init] [line:24]: Realtime synonym is disabled, since no redis connection.
Traceback (most recent call last):
File "/mnt/e/work/shanghai_workspace/ai/ragflow/rag/svr/task_executor.py", line 375, in
main()
File "/mnt/e/work/shanghai_workspace/ai/ragflow/rag/svr/task_executor.py", line 294, in main
rows = collect()
^^^^^^^^^
File "/mnt/e/work/shanghai_workspace/ai/ragflow/rag/svr/task_executor.py", line 117, in collect
assert tasks, "{} empty task!".format(msg["id"])
AssertionError: 7fce51b819 ac11ef964e00155d0024f8 empty task!
ERROR conda.cli.main_run:execute(124): conda run python /mnt/e/work/shan ghai_workspace/ai/ragflow/rag/svr/task_executor.py failed. (See above for error)

iswrvxsc

iswrvxsc1#

这是由于重启系统后的数据脏导致的。忽略此问题,任务执行器将自动重启。在重启服务器后取消任务。

相关问题