Skip to content

add task to cleanup tmp directory for log files#622

Open
danangmassandy wants to merge 3 commits intomainfrom
feat-cleanup-script
Open

add task to cleanup tmp directory for log files#622
danangmassandy wants to merge 3 commits intomainfrom
feat-cleanup-script

Conversation

@danangmassandy
Copy link
Collaborator

Fix https://github.com/unicef-drp/GeoSight/issues/1709

The script will check for every 12H and if the disk usage is high and above specified threshold (default to 90%), then the script will delete numbered log files, for example: django.log.1 or worker.log.1

TODO: pending confirmation with @meomancer for other files to be deleted in /tmp directory.

@meomancer
Copy link
Collaborator

Hi @danangmassandy
Could we have django model for report for this?
So we have insight about temp usage when cleaning

@danangmassandy danangmassandy marked this pull request as ready for review March 23, 2026 10:46
@danangmassandy
Copy link
Collaborator Author

@meomancer I have added a model to capture the event when cleaning up directory.

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