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 check_file_source function #1085

Merged
merged 1 commit into from
Feb 11, 2025
Merged

Add check_file_source function #1085

merged 1 commit into from
Feb 11, 2025

Conversation

groutr
Copy link
Contributor

@groutr groutr commented Feb 10, 2025

Isolate the fallback logic of check_file_exists inside its own function. The work has begun to move away from using check_file_exists in the image based lambdas. The fallback logic from S3 is still needed, but without all the download code.

This new function simply checks to see if a file is on S3 or one of the http fallback urls. If the file exists, the full URI is returned. Otherwise None is returned.

Copy link
Collaborator

@shawncrawley shawncrawley 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!

@shawncrawley shawncrawley merged commit 11acdbe into NOAA-OWP:ti Feb 11, 2025
1 check 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.

2 participants