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

Fixing CLI not exiting properly #350

Merged
merged 1 commit into from
Oct 17, 2022
Merged

Fixing CLI not exiting properly #350

merged 1 commit into from
Oct 17, 2022

Conversation

silvanheller
Copy link
Member

This PR fixes #349. It does not interfere with the aim of #345, as there is a while(true) loop if the CLI is not enabled.

@silvanheller silvanheller added bug waiting-for-approval Waiting for PR review labels Oct 17, 2022
@silvanheller silvanheller self-assigned this Oct 17, 2022
@silvanheller silvanheller merged commit e5587fc into main Oct 17, 2022
@silvanheller silvanheller deleted the fix/cli-exit-349 branch October 17, 2022 12:22
@lucaro
Copy link
Member

lucaro commented Oct 17, 2022

Does this actually trigger the shutdown hook to close the API properly or does it just kill the process?
Wouldn't it be cleaner to only register the shutdown hook when the CLI is not enabled and otherwise handle the shutdown mechanism as before?

@Spiess
Copy link
Member

Spiess commented Oct 17, 2022

I have tested this with the CLI enabled and it produces the log output from the shutdown hook, so it appears to be closed correctly as far as I can tell.

@lucaro
Copy link
Member

lucaro commented Oct 17, 2022

ok, good enough then I guess
maybe a comment at that point would be nice to explicitly point this out, as it is not obvious (or at least is wasn't to me)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug waiting-for-approval Waiting for PR review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Exit and ^D no longer exit the CLI
3 participants