-
Notifications
You must be signed in to change notification settings - Fork 135
feat: add configurable minimum age for lost servers #2297
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
feat: add configurable minimum age for lost servers #2297
Conversation
c06f934 to
2d58d35
Compare
e16a32d to
7ba402b
Compare
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.
PR Summary
This PR introduces a configurable minimum age parameter for server pruning, propagating a new min_age field from the prune operation to the lost servers query.
• Updated /packages/core/services/cluster/src/ops/server/prune_with_filter.rs to add min_age in the Input struct and pass it to the lost_list operation.
• Modified /packages/core/services/cluster/src/ops/server/lost_list.rs to use the min_age for filtering servers by creation timestamp, defaulting to 720 minutes if unset.
2 file(s) reviewed, no comment(s)
Edit PR Review Bot Settings | Greptile
Merge activity
|
<!-- Please make sure there is an issue that this PR is correlated to. --> ## Changes <!-- If there are frontend changes, please include screenshots. -->

Changes