长文档解析出现Timed out waiting for result of task xx超时错误
Search before asking | 提交之前请先搜索
- I have searched the MinerU Readme and found no similar bug report.
- I have searched the MinerU Issues and found no similar bug report.
- I have searched the MinerU Discussions and found no similar bug report.
Consult the online AI assistant for assistance | 在线 AI 助手咨询
- I have consulted the online AI assistant but was unable to obtain a solution to the issue.
Description of the bug | 错误描述
The new version (3.4.5) of mineru has an unreasonable setting for the task timeout duration. The default get_task_result_timeout_seconds is set to 3600 seconds, which causes a "Timed out waiting for result of task XX" timeout error when mineru processes larger PDF documents, leading to task failure. After investigation, I modified the get_task_result_timeout_seconds parameter in the source code, attempting to significantly extend it to 36000 seconds. After the modification, converting the same PDF no longer produced the previous timeout error. Therefore, I hope that in future improvements, the task timeout duration can be extended to avoid failure in recognizing and converting PDF documents with a large amount of text content, and at the same time, it could be implemented as a manually adjustable command-line custom parameter.
新版mineru 3.4.5对于任务超时时长的设置不合理。默认的get_task_result_timeout_seconds设置为3600秒,这会导致mineru解析较大pdf文档时出现Timed out waiting for result of task XX的超时错误,进而造成任务失败(如图)。经过简单研究,我将源码中get_task_result_timeout_seconds参数进行了修改,尝试大幅延长至36000秒,修改后转换同一个pdf,没有出现此前的超时错误。因此,希望后续改进时将任务超时时间进行延长,避免出现文本内容较多的pdf文档解析转换失败的情况,同时可以以命令行自定义参数的方式实现手动调节。
How to reproduce the bug | 如何复现
N/A
Operating System Mode | 操作系统类型
Windows
Operating System Version| 操作系统版本
Windows 11 23H2 22631.4169 / conda 26.3.2
Python version | Python 版本
3.12
Software version | 软件版本 (mineru --version)
>=2.5
Backend name | 解析后端
vlm
Device mode | 设备模式
cuda
Source: opendatalab/MinerU