-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
feat: add max_size to retention settings #21494
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: dev
Are you sure you want to change the base?
Conversation
✅ Deploy Preview for frigate-docs ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
frigate/record/cleanup.py
Outdated
|
|
||
| def expire_review_segments(self, config: CameraConfig, now: datetime) -> None: | ||
| def expire_review_segments( | ||
| self, config: CameraConfig, now: datetime.datetime |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Either this or change top level import datetime to from datetime import datetime
88b4e33 to
a6b7d35
Compare
|
Marked as draft as I've just realized this implementation does not address all points raised in the issue. And I started from master instead of dev 🤦 and the changes conflict with #18492 |
|
Yeah, it's complicated as this effectively works as a per camera only. Making the global behave in a way that may not be intuitive. It also is tough as there's not separate size for each type. So need to think about how it prioritizes deleting specific segments. It also still requires the user to set days retention, I think only one should be allowed at a time. Preferably they will be separate top level retention functions instead of mixed together. |
a6b7d35 to
7ec1d5d
Compare
Proposed change
This PR adds a
max_sizeparameter to recording settings as discussed in #9275, e.g.:Type of change
Additional information
Checklist
enlocale.ruff format frigate)