From 41bf8617f1dc9c77410f94e026cc4f5b76adb2bb Mon Sep 17 00:00:00 2001 From: Boris Arzentar Date: Wed, 25 Sep 2024 14:59:04 +0200 Subject: [PATCH] fix: prune the system on startup --- cognee/api/client.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cognee/api/client.py b/cognee/api/client.py index 5c015f6ce..99fa6383e 100644 --- a/cognee/api/client.py +++ b/cognee/api/client.py @@ -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: