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

Make app resilient to S3 or other errors on cost centre startup. #346

Merged
merged 3 commits into from
Jul 8, 2024

Conversation

CorinWilkins
Copy link
Collaborator

@CorinWilkins CorinWilkins commented Jul 8, 2024

This fixes an issue where the app will fail to start if there is any sort of error getting data from S3.
If there is the app will start with out test fixure loaded.

The app will raise an error log beginning with Failed which will be picked up by our metric filter.

Copy link
Contributor

@heathd heathd left a comment

Choose a reason for hiding this comment

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

need to use Aws::S3::Errors::ServiceError

Avoid a too-broad catch statement
heathd
heathd previously approved these changes Jul 8, 2024
@heathd heathd merged commit fe8cea7 into main Jul 8, 2024
1 check passed
@heathd heathd deleted the eng-290-startup-fix branch July 8, 2024 13:08
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