Skip to content

Conversation

@megascatterbomb
Copy link
Contributor

Changes:

  • Allows a storage cap to be specified by the user, and deletes demos with no detections to stay within that limit on boot.
  • Always deletes demos with no detections.
  • Avoids deleting more than a certain % of demos in one go to mitigate catastrophic data losses (5% by default).
  • Automatically cleans up hanging demos (demo blobs with no matching record in the database).

🔥 This PR has been tested in production 🔥

Example log output during boot:
image

@megascatterbomb megascatterbomb merged commit 97afeb8 into main Apr 21, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants