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

Filter rootnames and filenames before calling the filename_parser in archive_database_update #1657

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from

Conversation

bhilbert4
Copy link
Collaborator

The motivation for this PR is to reduce the size of the log files from archive_database_update. After #1651 the filename_parser creates a log message for files that it cannot parse. But the relevant lines are also inside a try/except. So each time a non-parsable file is used, 4-5 lines of log messages are created. In WFSS observations, there can be thousands of filenames that can't be parsed. Plus the filename_parser is actually called twice on all the files as part of archive_database_update. This was resulting in log files that were ~350MB each, once per hour.

This PR filters out those filenames before calling the filename_parser, so we should end up not having all of those logging lines added.

@bhilbert4 bhilbert4 self-assigned this Oct 30, 2024
@pep8speaks
Copy link

pep8speaks commented Oct 30, 2024

Hello @bhilbert4, Thank you for updating !

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

Comment last updated at 2024-10-30 18:21:48 UTC

@bhilbert4 bhilbert4 requested a review from mfixstsci October 30, 2024 18:42
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