-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Feature/async storage implementation with SQLite / PostgreSQL #121
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
base: main
Are you sure you want to change the base?
Feature/async storage implementation with SQLite / PostgreSQL #121
Conversation
b7dc2d8 to
21c6592
Compare
21c6592 to
7972c7d
Compare
|
Hey @fancyboi999 , thanks for contributing the code, glad to see the persistence layer will be integrated. However, could u plz extract the storage implementation logic into a separate file, so the logic could be used in multiple graphs in Deerflow project. cc: @MagicCube |
… in multiple graphs
|
Hi @hetaoBackend , @MagicCube |
|
e use a compatible event loop, for instance by setting 'asyncio.set_event_loop_policy(WindowsSelectorEventLoopPolicy())' |
@fancyboi999 有时间可以看下吗 |
|
@chenxingwei-wayne 感谢反馈!我看了 在 import platform
import asyncio
# 为 Windows 平台设置正确的事件循环策略
if platform.system() == "Windows":
from asyncio import WindowsSelectorEventLoopPolicy
asyncio.set_event_loop_policy(WindowsSelectorEventLoopPolicy()) |
@fancyboi999 根据你提供的方法已经解决了,多谢。 |
Feature: Async Implementation for Persistent Storage Configuration
This PR implements asynchronous persistent storage functionality, addressing the TODO item in the codebase to make DeerFlow compatible with SQLite and PostgreSQL storage backends.
Changes Made
src/graph/builder.pysrc/server/app.pyto utilize async storage interfacesdocs/configuration_guide.mdwith storage configuration detailsTesting
make test✓make lintandmake format✓make coverage✓Documentation
The configuration guide has been updated with detailed instructions for the new storage options:
Code Standards
Related TODO Item
This PR resolves the TODO item in
src/graph/builder.py:By implementing the requested storage backends and maintaining compatibility with the existing code.