I have a question about ~/.prefect/prefect.db. I r...
# ask-community
h
I have a question about ~/.prefect/prefect.db. I run tons of flows and tasks continuously. As a result, I noticed that prefect.db was getting too huge, like n GB. Because flow/task history is recorded on the external logging system, I don't mind losing all history in prefect.db. Is there any way to continuously and safely clean up ~/.prefect/prefect.db while the process is always running ? Something like this ? Thank you.
Copy code
while True:
  run_task()
  clean_up_db()
Version: 2.20.7 API version: 0.8.4 Python version: 3.12.5 Git commit: e0267b46 Built: Thu, Sep 12, 2024 12:53 PM OS/Arch: linux/x86_64 Profile: default Server type: ephemeral Server: Database: sqlite SQLite version: 3.44.2