Skip to content
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

Add script to automatically delete old log files #1456

Merged
merged 5 commits into from
Jan 30, 2024

Conversation

bhilbert4
Copy link
Collaborator

Resolves #1434

This PR introduces a script that will delete all log files older than a given threshold age. We can run this via cron job, which would then prevent the build-up of tons of log files, especially in the archive_database_update directory.

@mfixstsci @BradleySappington I think this is ready for review. (The line that does the actual deletion is commented out at the moment in favor of a print statement saying what it would delete.)

I tested on my local machine, and the log files it said it would delete were correct.

@bhilbert4 bhilbert4 self-assigned this Jan 29, 2024
@pep8speaks
Copy link

pep8speaks commented Jan 29, 2024

Hello @bhilbert4, Thank you for updating !

Cheers ! There are no PEP8 issues in this Pull Request. 🍻

Comment last updated at 2024-01-30 15:23:47 UTC

Copy link
Collaborator

@mfixstsci mfixstsci left a comment

Choose a reason for hiding this comment

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

Looks good, tested on dev and everything looks to be in order.

@mfixstsci mfixstsci merged commit 7f651d7 into spacetelescope:develop Jan 30, 2024
6 checks passed
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.

Create script to delete old log files
3 participants