fix: prune the system on startup
This commit is contained in:
parent
d39d859e2b
commit
41bf8617f1
1 changed files with 4 additions and 4 deletions
|
|
@ -390,10 +390,10 @@ def start_api_server(host: str = "0.0.0.0", port: int = 8000):
|
|||
try:
|
||||
logger.info("Starting server at %s:%s", host, port)
|
||||
|
||||
# import asyncio
|
||||
# from cognee.modules.data.deletion import prune_system, prune_data
|
||||
# asyncio.run(prune_data())
|
||||
# asyncio.run(prune_system(metadata = True))
|
||||
import asyncio
|
||||
from cognee.modules.data.deletion import prune_system, prune_data
|
||||
asyncio.run(prune_data())
|
||||
asyncio.run(prune_system(metadata = True))
|
||||
|
||||
uvicorn.run(app, host = host, port = port)
|
||||
except Exception as e:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue