docs: 更新文档解析超时时间默认值为1800秒
将文档解析的超时时间默认值从600秒调整为1800秒,以提供更长的处理时间
This commit is contained in:
parent
20f0f793dc
commit
4547114611
@ -66,7 +66,7 @@ docker compose up api -d
|
||||
```
|
||||
|
||||
::: tip 处理超时
|
||||
文档解析超时时间默认 600 秒,可通过 `MINERU_TIMEOUT` 环境变量调整。
|
||||
文档解析超时时间默认 1800 秒,可通过 `MINERU_TIMEOUT` 环境变量调整。
|
||||
:::
|
||||
|
||||
|
||||
|
||||
@ -155,7 +155,7 @@ class MinerUParser(BaseDocumentProcessor):
|
||||
self.parse_endpoint,
|
||||
files=files,
|
||||
data=data,
|
||||
timeout=os.environ.get("MINERU_TIMEOUT", 600), # 10分钟超时
|
||||
timeout=os.environ.get("MINERU_TIMEOUT", 1800), # 30分钟超时
|
||||
)
|
||||
|
||||
# 检查响应状态
|
||||
|
||||
Loading…
Reference in New Issue
Block a user