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

fix: Update port manager shutdown flow #209

Merged
merged 1 commit into from
Nov 14, 2024

Conversation

joe-yeager
Copy link
Contributor

@joe-yeager joe-yeager commented Nov 13, 2024

Description and Context

Updates the portManager shutdown flow to call a health check endpoint before attempting to shutdown the server.

TODO

  • Update the CLI code accordingly
  • The hs doctor PR was making use of the isPortManagerServerRunning and will need to be updated to use the isPortManagerPortAvailable

Comment on lines +15 to +20
export async function isPortManagerPortAvailable(): Promise<boolean> {
return (
(await detectPort(PORT_MANAGER_SERVER_PORT)) === PORT_MANAGER_SERVER_PORT
);
}

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is primarily for use with the hs doctor command since it is currently using isPortManagerServerRunning to check if the port is available and the logic of that is changing

@joe-yeager joe-yeager changed the title fix: Update port manager shutdown flow to check if the port manager is running fix: Update port manager shutdown flow Nov 14, 2024
Copy link
Contributor

@kemmerle kemmerle left a comment

Choose a reason for hiding this comment

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

LGTM

@joe-yeager joe-yeager merged commit ea7d69a into main Nov 14, 2024
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.

3 participants