Krystal
03/13/2024, 2:12 PMMarvin
03/13/2024, 2:13 PMKrystal
03/13/2024, 2:13 PMMarvin
03/13/2024, 2:14 PMpg_cron
for periodic DBA tasks, such as purging old logs. However, caution is advised to avoid breaking references in other tables.
- GitHub Issue #5813
2. Error in middleware/server when deleting a flow with >50k flow runs:
The user encountered errors when trying to delete a flow with many flow runs. While this isn't directly about automatic removal, it presents issues related to managing large numbers of flow runs within Prefect's infrastructure.
- GitHub Issue #11060
These issues might give you more context on how flow run records are managed and potential problems with high volumes of flow runs with Prefect's server and Postgres setup. There doesn't seem to be a default automated retention policy, but custom solutions like database cleanup scripts can be implemented with care.