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 option to override unhealthy status so 4xx can be unhealthy #252

Merged
merged 2 commits into from
Jul 15, 2023

Conversation

jeffmercerVG
Copy link
Contributor

Issue #251

Description of changes:
I added an optional environment variable called AWS_LWA_READINESS_CHECK_MIN_UNHEALTHY_STATUS that will let me override the lowest status code that is considered unhealthy. This is currently hardcoded to 500. This PR allows me to override it. The default remains at 500 as to not impact existing users.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@bnusunny
Copy link
Contributor

Could you check the linting issues?

@jeffmercerVG
Copy link
Contributor Author

Yes, I'll look into the lint issue.

@bnusunny bnusunny merged commit dcb2b7b into awslabs:main Jul 15, 2023
14 checks passed
@bnusunny
Copy link
Contributor

Thanks for the contribution!

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