这是indexloc提供的服务,不要输入任何密码
Skip to content

Fix: Add the Elasticsearch connection health check function #8814

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Fenhy
Copy link

@Fenhy Fenhy commented Jul 13, 2025

What problem does this PR solve?

Add the Elasticsearch connection health check function
fixed bug "requests to Elasticsearch timeout" #8669

Type of change

  • Bug Fix (non-breaking change which fixes an issue)

- 在 ESConnection 类中添加健康检查线程,定期检查 Elasticsearch 连接状态
- 在 settings.py 中添加 ES_HEALTH_CHECK_INTERVAL_SECONDS 配置项,用于设置健康检查间隔时间
- 健康检查线程在后台运行,确保主程序正常执行
@dosubot dosubot bot added size:M This PR changes 30-99 lines, ignoring generated files. 🐞 bug Something isn't working, pull request that fix bug. labels Jul 13, 2025
@yingfeng yingfeng added the ci Continue Integration label Jul 14, 2025
@yingfeng
Copy link
Member

Static check error

Error: rag/settings.py:19:29: F401 `agent.component.ExeSQL` imported but unused

- 删除了 settings.py 文件中未使用的 ExeSQL导入
@dosubot dosubot bot added size:S This PR changes 10-29 lines, ignoring generated files. and removed size:M This PR changes 30-99 lines, ignoring generated files. labels Jul 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐞 bug Something isn't working, pull request that fix bug. ci Continue Integration size:S This PR changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants