Skip to content

[chore] : (#48) increase log cleanup frequency and enable auto-deletion#97

Closed
JagadeeshSwarna3 wants to merge 1 commit intoParaLogicTech:version-15from
JagadeeshSwarna3:biometric_log_auto_cleanup
Closed

[chore] : (#48) increase log cleanup frequency and enable auto-deletion#97
JagadeeshSwarna3 wants to merge 1 commit intoParaLogicTech:version-15from
JagadeeshSwarna3:biometric_log_auto_cleanup

Conversation

@JagadeeshSwarna3
Copy link
Copy Markdown

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

"Integration Request": 90,
"Activity Log": 90,
"Route History": 90,
"Biometric Log": 30,
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wrong app, add in it agmc_custom hooks not in frappe. this is not a frappe feature

@SaiFi0102 SaiFi0102 closed this Jul 14, 2025
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