[chore] : (#48) increase log cleanup frequency and enable auto-deletion#97
Closed
JagadeeshSwarna3 wants to merge 1 commit intoParaLogicTech:version-15from
Closed
Conversation
SaiFi0102
requested changes
Jul 14, 2025
| "Integration Request": 90, | ||
| "Activity Log": 90, | ||
| "Route History": 90, | ||
| "Biometric Log": 30, |
Member
There was a problem hiding this comment.
Wrong app, add in it agmc_custom hooks not in frappe. this is not a frappe feature
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR implements configurable automatic deletion of Biometric Log records using the standard Frappe Log Settings system. The feature is modeled after the Email Queue log cleanup pattern and is fully integrated with the Log Settings UI for easy configuration.
Key Features
Biometric Log auto-deletion is now managed via the Log Settings UI.
Retention period is fully configurable by the user (in days).
Deletion is based on the log_dt field (Log Date/Time) compared to the current date.
Implements the clear_old_logs method in the Biometric Log DocType, following the same logic and coding style as Email Queue.
No custom scheduler or patch required; leverages Frappe’s built-in log cleanup system.
Scheduler frequency for Biometric Log processing changed from "hourly_long" to "all" (every 5 minutes) for more responsive log processing.
Closes https://github.com/ParaLogicTech/agmc_custom/issues/48