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

Fix log cleanup script #1628

Merged
merged 4 commits into from
Aug 16, 2024

Conversation

bhilbert4
Copy link
Collaborator

Small tweaks to the script for cleaning up old log files.

Added a dry_run parameter so that the user can see what the tool would delete.
Also made the file executable so that we can call it from the crontab with the same syntax as the other jobs.
Also made the threshold time to determine which logs to delete a float. It was previously an integer, and in units of days. Changing to a float gives a little more flexibility.

@bhilbert4 bhilbert4 self-assigned this Aug 16, 2024
@pep8speaks
Copy link

pep8speaks commented Aug 16, 2024

Hello @bhilbert4, Thank you for updating !

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

Comment last updated at 2024-08-16 19:21:21 UTC

@bhilbert4
Copy link
Collaborator Author

@mfixstsci this is ready for review. Local testing all worked as expected.

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.

LGTM @bhilbert4

@mfixstsci mfixstsci merged commit 7d011f5 into spacetelescope:develop Aug 16, 2024
11 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.

3 participants