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

Adding healthcheck command to docker #173

Merged
merged 1 commit into from
Feb 4, 2025
Merged

Conversation

johnsimons
Copy link
Member

@johnsimons johnsimons commented Feb 3, 2025

This adds a new health-check command to the CLI, and then we use it to check if the container is healthy.

@johnsimons johnsimons self-assigned this Feb 3, 2025
@johnsimons johnsimons changed the title Adding health checker command to docker Adding healthcheck command to docker Feb 3, 2025
Comment on lines +31 to +32


Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change


var hostSettings = new HostSettings(
configuration.ReturnQueue,
$"Queue creator for {configuration.ReturnQueue}",
Copy link
Contributor

Choose a reason for hiding this comment

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

without looking at the signature... should this be a different description?

Copy link
Member Author

Choose a reason for hiding this comment

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

I don't think this matters

return (false, e.Message);
}

return (true, string.Empty);
Copy link
Contributor

Choose a reason for hiding this comment

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

so if it fails for any reason other than brokerunreachable it will still be marked as healthy? This is the description of the healthchecker... but seems to me like it could cause some confusion

Copy link
Member Author

@johnsimons johnsimons Feb 4, 2025

Choose a reason for hiding this comment

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

so if it fails for any reason other than brokerunreachable it will still be marked as healthy?

no, it will be an unhandled exception and therefore it will be exit code 1

@johnsimons johnsimons merged commit af3bc07 into master Feb 4, 2025
6 checks passed
@johnsimons johnsimons deleted the john/healthcheck branch February 4, 2025 01:44
@johnsimons johnsimons added this to the 1.0.2 milestone Feb 6, 2025
@johnsimons johnsimons added the Feature New feature or request label Feb 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants